SDK method
tools.saveCampaignRecipientDraft
Save agent-written recipient text. Convenience alias for save_campaign_recipient_draft, forwarding to tinbox.api.campaignDrafts.save.mutate.
Signature
ts
saveCampaignRecipientDraft(input: Parameters<TinboxTools["saveCampaignRecipientDraft"]>[0]): ReturnType<TinboxTools["saveCampaignRecipientDraft"]>Parameters
| Name | Type | Required | Description |
|---|---|---|---|
lane | "warm" | "cold" | yes | — |
campaignId | string | yes | — |
recipientId | string | yes | Existing recipient row id; use add_outreach_prospects for cold or stage_campaign_recipients for warm first. |
expectedRevision | string | yes | — |
subject | string | yes | — |
body | string | yes | — |
followUp | unknown | no | Cold only: optional fixed follow-up reviewed with the initial message. Omit to preserve; null removes it. |
Returns
ReturnType<TinboxTools["saveCampaignRecipientDraft"]>
Example
ts
await tinbox.tools.saveCampaignRecipientDraft({
"lane": "warm",
"campaignId": "<campaignId>",
"recipientId": "<recipientId>",
"expectedRevision": "<expectedRevision>",
"subject": "<subject>",
"body": "<body>"
});