Generate Monitored Post Comment
generate_monitored_post_commentPrefer this over queue_linkedin_post_engagement (with your own text) when acting
on a post from the agent's monitored-posts feed. Pass a row id from
query_monitored_posts. Only posts with no queued comment are eligible
('skipped', 'skipped_no_credit', 'engagers_only', 'surfaced'); already-commented,
queued, or user-rejected posts are refused.
A queued-status dict in one of three forms.
{'queued': True, 'awaiting_approval': bool, 'status': 'queued', 'draft_comment': str, 'agent_id': int, 'message': str}
on success (1 credit charged); agent_id is the agent monitoring the post
{'queued': False, 'deduped': True, 'message': str} if a comment is already queued
{'queued': False, 'error': 'not_found'|'not_eligible'|'out_of_credits'|'no_draft'} otherwise
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_teammate | No | Draft on a consented teammate's monitored post instead of your own — pass their email; the 1-credit charge lands on their account. Gated on that teammate's act-on-behalf setting; a teammate who hasn't granted it is rejected. Omit for your own. | |
| monitored_post_id | Yes | The `id` of a monitored_posts row (from query_monitored_posts). |