Skip to content
Tinbox

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

NameTypeRequiredDescription
lane"warm" | "cold"yes—
campaignIdstringyes—
recipientIdstringyesExisting recipient row id; use add_outreach_prospects for cold or stage_campaign_recipients for warm first.
expectedRevisionstringyes—
subjectstringyes—
bodystringyes—
followUpunknownnoCold 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>"
});