Skip to main content
Draft messages for prospects already in the campaign. Pass all: true to queue every prospect whose messages are empty (returns queued), or enrollmentId for one prospect (returns the run ID; follow its progress with campaign_read get_run). Retry a prospect the same way. sourceRunId with candidateKeys adds selected candidates of a finished run that saved to CRM and drafts them. Uses research and writing allowances. Tool: campaign_write · Method: prepare_messages Hosted OAuth MCP, local MCP, and REST API. Choose all: true for enrolled prospects with empty messages, or enrollmentId for one prospect. sourceRunId with candidateKeys selects candidates from a completed run. Do not combine unrelated selection modes. A queued count acknowledges work; inspect the campaign and get_run before claiming the messages are ready.

Example

All IDs, addresses and revisions below are illustrative. Replace them with values read from your workspace.

Inputs

For MCP, add method: prepare_messages alongside these fields. For REST, use action: prepareMessages instead of method. Fields inside an optional object are required only when that object is provided. Do not send fields from a different method.

Result

MCP returns the following projected schema as structured content and JSON text. The REST response may contain additional fields; do not rely on undocumented fields.
Download input schema · Download MCP response schema See permissions, errors and recovery, and sending approval.