Draft Email With Ai
draft_email_with_aiSuggest edits to a saved web campaign using its authorized content and aggregate context. Supply campaignId, expectedRevision, instruction and editTarget (all, subject, plan, audience or block index such as block0). editTarget audience turns a plain-language description of who should get the email into proposed include/exclude conditions (optional audienceOptions {events:[{eventId,eventName}], communities:[{id,name}]} names pickable context); the reply lists unsupported parts and warnings for conditions with no recorded data. Returns a proposal for organizer review; does not save, publish, widen the audience or grant permission. Uses the same cached request and writing budget as the web co-writer. Workflow guide (MCP resource): socialloop://guides/email-campaigns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| payload | Yes | Action parameters used by the web workspace: IDs, expectedRevision, draft/definition, cursor, and reviewHash where required. Identity is supplied by the connected account. |