Skip to content

Workflow Review

Human-in-the-loop review — list, approve, reject, edit, and retry pending workflow actions.

Full name: campaignstack_list_pending_reviews

workflows:read Read-only Idempotent

List pending workflow review actions requiring human approval. Returns entries with lead details (including leadLinkedInUrl), crafted content, aiReasoning, aiSources (which provided context the draft drew on, e.g. post, signal, experience, web; null for older drafts), conversationHistory (the prior thread with the lead, sender self/lead, null for cold opens), campaign/workflow context, and a reviewContext discriminated union: type “post_comment” includes commentText, postContent, postUrl, postAuthorName, postUnavailable (true when the post was deleted on LinkedIn) (when triggered by a post comment signal); type “campaign” for regular campaign workflow reviews; null when context cannot be determined. bookedMeeting (non-null when the calendar booking chain already booked a meeting from a link the lead sent) means the draft under review is that meeting’s confirmation: the booking is done, rejecting the draft stops the message but never cancels the meeting. reviewTags marks priority items (e.g. meeting_booked); tagged entries are pinned at the top of the first page ahead of the FIFO queue - review them first. Use campaignstack_approve_review, campaignstack_reject_review, or campaignstack_edit_and_approve_review to act on entries.

NameTypeRequiredDefaultDescription
workspaceIdstringYes(min length: 1)
limitintegerNo20(min: 1, max: 100)
cursorstringNo

Full name: campaignstack_count_pending_reviews

workflows:read Read-only Idempotent

Count pending workflow review actions in a workspace. Returns the total number of entries awaiting human approval.

NameTypeRequiredDefaultDescription
workspaceIdstringYes(min length: 1)

Full name: campaignstack_approve_review

workflows:write

Approve a pending review entry. For a draft parked at a review node, the lead advances via the ‘approved’ edge. For an escalated entry parked at the acting node itself (critic-flagged auto-send, agent escalation), approval RESUMES the withheld action: the runner action is re-dispatched with the approved text, or the draft is released through the node’s delivery exit. Use campaignstack_list_pending_reviews to find entry IDs.

NameTypeRequiredDefaultDescription
entryIdstringYes(min length: 1)
workspaceIdstringYes(min length: 1)

Full name: campaignstack_reject_review

workflows:write

Reject a pending review entry. The lead follows the ‘rejected’ edge in the workflow.

NameTypeRequiredDefaultDescription
entryIdstringYes(min length: 1)
workspaceIdstringYes(min length: 1)

Full name: campaignstack_edit_and_approve_review

workflows:write

Edit the AI-generated content and approve the review entry. The original content is preserved for audit trail. Draft parked at a review node: the lead advances via the ‘approved’ edge. Escalated entry parked at the acting node: the withheld action is resumed with your edited text (re-dispatched or released through the delivery exit).

NameTypeRequiredDefaultDescription
entryIdstringYes(min length: 1)
workspaceIdstringYes(min length: 1)
updatedContentobjectYes

Full name: campaignstack_retry_review

workflows:write

Retry AI content generation for a pending review entry. The entry returns to PROCESSING while the AI regenerates, then comes back to PENDING_REVIEW with new content.

NameTypeRequiredDefaultDescription
entryIdstringYes(min length: 1)
workspaceIdstringYes(min length: 1)