A professional email is composed, saved as a draft, and then sent to a recipient with tracking labels and idempotency protection, ensuring reliable delivery without duplicates.
The agent first identifies the target inbox ID. It then creates a draft message using POST /v1/inboxes/{id}/drafts, populating the subject, body, and recipient. Before sending, the agent should verify the draft content is accurate. Finally, it triggers the send action via POST /v1/inboxes/{id}/drafts/{did}/send, optionally adding an Idempotency-Key header to prevent duplicate sends if retries occur. The agent checks the response for success or error codes.
- Category: Sales and marketing
- Effect: Changes data in your accounts
- MCP servers: Anjal MCP (https://koskamo.com/explore/anjal-mcp)
- Source: Email + LinkedIn API Reference for AI Agents — Anjal (https://anjal.app/docs)
- Source quote: "Compose messages across multiple agent turns and send atomically."
- Playbook page: https://koskamo.com/explore/use-cases/send-personalized-outreach-emails-via-draft
Prompt: Create a draft email in inbox {inbox_id} with subject 'Follow up on Q3 results' and body 'Hi {name}, let's discuss the Q3 metrics.' Then send this draft. Use idempotency key {uuid} to ensure safety.