Craft message
campaignstack_craft_messageDraft one outbound message without sending anything. Select channel linkedin/email and kind first_touch, connection_note, comment, comment_reply, followup, or meeting_followup. Returns sent:false; callers must read the draft back and use a separate send/action tool only after explicit approval. It never books a meeting for you: when a follow-up finds the lead accepted a time offered earlier, schedulingAcceptance names it (booked:false) for a person to book.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"channel": "<channel>",
"kind": "<kind>"
},
"name": "campaignstack_craft_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| leadId | No | ||
| channel | Yes | Draft channel. LinkedIn drafts do not send; email drafts do not send. | |
| postUrl | No | For first_touch, pair with postContent for a post authored by the lead. Required for comment drafts: the target LinkedIn post URL containing its activity id, or its urn:li:activity URN. Posts older than five days are skipped before crafting. | |
| newEndAt | No | ||
| postDate | No | Post publication time in Unix milliseconds, when known. | |
| template | No | ||
| accountId | No | LinkedIn account that will send the draft: names the speaker and picks the voice on every LinkedIn kind. For a LinkedIn follow-up it also reads the thread, and defaults to the workspace's only LinkedIn account ready to use; with several, the error lists them so you can ask the person. | |
| meetingId | No | Required for kind=meeting_followup. | |
| campaignId | No | ||
| newStartAt | No | ||
| workflowId | No | ||
| commentText | No | ||
| meetingKind | No | ||
| postContent | No | For first_touch, supply the lead-authored post text with postUrl so the opener can cite it and review retains the evidence. | |
| workspaceId | No | Workspace ID. Omit it when this connection reaches one workspace: a workspace key (cs_) is bound to its own, and a user key (csu_) or connected app whose person belongs to exactly one workspace defaults to that one. Required only when the person belongs to several; the error then lists them, and campaignstack_whoami reports them too. | |
| instructions | No | ||
| conversationMessages | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| results | No | ||
| workspaceId | No |