Skip to content
Tinbox

Agent campaign strategies from flat files

Discover strategy and style documents, pin a reviewed source version to an existing campaign, and draft from that snapshot.

Keep stable campaign instructions and shared style in source-controlled Markdown. Keep contact facts, company notes, and live conversation state in the CRM and Inbox. The tenant bundles its Markdown into TinboxConfig.outreachStrategies; a source change needs a rebuild and deployment before runtime discovery sees it. Tinbox never treats a contact note or an incoming email as a strategy instruction.

Each source document has id, title, lane (warm or cold), status (draft or ready), version, sourcePath, content, and shared style. Use a content hash covering metadata, content, and style as the version. Content is bounded to 24,000 characters and style to 12,000 per strategy. Up to 100 source strategies can be bundled. Source status describes editorial readiness; it never approves a campaign or grants permission to send.

Discover and read before choosing

tinbox list-outreach-strategies --json
tinbox get-outreach-strategy --id existing-clients --json

The read response is explicit about content length and nextOffset. Continue with --offset and optional --limit (maximum 12,000 characters) until nextOffset is absent. The content includes the full strategy and shared style, with its version and source path. No instruction text is silently discarded. The same procedures are strategies.list and strategies.get over the SDK/API, and list_outreach_strategies / get_outreach_strategy over chat or MCP.

Pin the selection before drafting

await tinbox.api.strategies.applyToCampaign.mutate({
  campaignId: "cmp_existing_clients",
  lane: "warm",
  strategyId: "existing-clients",
  expectedVersion: "sha256:the-version-you-read",
});

The shared agent tool is apply_campaign_strategy; the CLI is tinbox apply-campaign-strategy --campaignId ... --lane warm --strategyId ....

Apply a warm strategy to an existing warm campaign, and a cold strategy to a cold outreach campaign. Strategy selection cannot convert between the two. Known clients use verified relationship facts with warm personalization or an individual inbox draft. New company prospects use the cold outreach workflow.

The API copies the selected strategy, style, source path, and version into a strategySnapshot on the existing campaign. Later edits to source documents do not silently change that campaign's instructions. Applying requires an unarchived campaign before approval/launch and before recipient bodies exist. Reapplying the same snapshot is idempotent. Start a new draft campaign to use a revised strategy after bodies have been drafted.

Drafting uses the snapshot automatically

Cold outreach.draftProspect / outreach.draftAllPending combine the pinned strategy and style, campaign brief, the prospect's current sequence step, and any message-specific task instruction. Warm campaigns.personalize uses the same snapshot with the recipient's verified first-party data; an inline instruction is optional once a strategy is pinned. Both routes include the active org-wide Handbook policies in the model's system instructions.

The saved draft provenance records the actual base instructions and a structured strategy id/version/source marker. Bodies remain in the review queue. Applying a strategy and drafting never approve, launch, or send a campaign. Conditional writes reject stale model results when campaign instructions, selected strategy, approval state, or the target prospect changes during generation.

Permissions

Reading source strategies needs deployment membership and a read-class token scope. Campaign authoring can be delegated through outreach:write for cold campaigns or campaigns:write for warm campaigns with a write-class scope. Existing inbox admins and send-capable callers retain their authoring access. These author capabilities do not grant campaign test sends, approval, launch, or dispatch; those keep their existing authority gates. Only an authorized admin can grant capabilities. No strategy tool changes permissions.

For relationship facts and notes, see CRM notes. For sourcing, review bodies, and reply navigation, see external-agent outreach.