dispatch_email_campaign
Sends personalized cold-outreach email campaigns for accepted offers. Uses Claude to draft emails, runs A/B variants, auto-adds CAN-SPAM unsubscribe, and skips opted-out recipients.
Instructions
Send a personalized cold-outreach email campaign for an offer the agent has accepted. Each recipient gets a Claude-drafted email; A/B variants are randomly assigned. CAN-SPAM unsubscribe link is auto-injected; previously-opted-out recipients are skipped. Outcome events stream back via the offer's webhook configuration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offer_id | Yes | The offer id the agent is currently assigned to. | |
| audience_upload_id | Yes | Audience id; must be in the offer's granted audiences. | |
| from_name | Yes | Display name in the From: header (e.g. 'Maya at Acme'). | |
| from_email | No | From: address; must be on the offer's verified sender domain. Defaults to agent@<domain>. | |
| reply_to | No | Reply-To header. Defaults to from_email. | |
| subject_template | Yes | Subject; can use {{first_name}} etc. — Claude will personalize. | |
| body_template | Yes | Brief / talking points for Claude to draft from. Per-recipient body is generated. | |
| variants | Yes | A/B variants. Pass a single entry if you don't want a split. |