Queue Linkedin Post Engagement
queue_linkedin_post_engagementExactly one of comment_text or reaction_type must be provided.
For a comment, pass comment_text (the text to post). For a reaction,
pass reaction_type (one of 'like', 'celebrate', 'support', 'love',
'insightful', 'funny'). The agent picks reaction_type='like' by
default for most posts; the user can change it on the approval card.
Resolves the post's social_id (URN format) from the URL, then creates
a linkedin_invite_queue item with action_type='comment' or 'reaction'
depending on which body field was set. The pre_save signal resolves the
per-subtype approval policy — gate (pending_approval) or auto-send (pending).
A queued-status dict in one of three forms.
{'queued': True, 'awaiting_approval': bool, 'message': str} on success;
awaiting_approval is False when the engagement will post automatically
{'queued': False, 'deduped': True, 'message': str} when this post already
has a live engagement of the same kind (report the message; not an error)
{'queued': False, 'error': str} on resolution failure
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_url | Yes | LinkedIn post URL (e.g. 'https://linkedin.com/posts/...-activity-123-...') | |
| post_text | No | Excerpt of the post text (for the approval card display) | |
| as_teammate | No | Queue the engagement on a consented teammate's account instead of your own — pass their email. It lands as a standalone (account-level) engagement on their queue, not tied to any of your agents. Gated on that teammate's act-on-behalf setting; a teammate who hasn't granted it is rejected. Omit for your own. | |
| author_name | No | Name of the post author (for the approval card display) | |
| comment_text | No | The comment text to post. Mutually exclusive with reaction_type. | |
| reaction_type | No | One of 'like', 'celebrate', 'support', 'love', 'insightful', 'funny'. Mutually exclusive with comment_text. | |
| prospect_identifier | No | The warming prospect's tracking-item identifier (LinkedIn URL/slug) — links this engagement back to the prospect for the system-maintained `data.comments_posted` (comments) or `data.reactions_posted` (reactions) counter. Required for warm-up flow; safe to omit for one-off engagements unconnected to a warm-up campaign. |