desplega-ai/agent-swarm/agentmail-sending
Claude Code and agent skill by desplega-ai/agent-swarm
- community
Checking that the SKILL.md file is still in the repository.
Canonical AgentMail send-message API reference for swarm agents. Pins the base URL, required field names, text-only rendering workaround, BCC policy, and ready-to-copy curl / swarm-script examples so agents do not rediscover the API surface at runtime.
Install
npx vskill@latest install desplega-ai/agent-swarm/agentmail-sendingSKILL.md
AgentMail Sending
Canonical Base URL
Use this base URL exactly:
DO NOT use api.agentmail.ai. That host is a hallucination and will not send mail through AgentMail's current API.
Canonical Send-Message Fields
For POST /inboxes/{inbox}/messages/send, the JSON body fields are exactly:
Use text, NOT text_body, body, or content.
Do NOT pass html. AgentMail has a known rendering bug: when html is passed with text, the HTML body can be empty and email clients may show a blank email. AgentMail renders text correctly on its own.
Rule 0: One-Shots Stay One-Shots
For a one-off send, such as a kickoff email or a single notification, do not create a reusable swarm-script. Use raw curl from Bash, or inline script_run if you need swarm-visible execution.
Only use script_upsert when the send will be reused by a workflow that fires repeatedly.
Default Example: Raw curl
Use this direct API call first. It does not assume any SDK is installed.
Endpoint:
Notes:
AGENTMAIL_API_KEYmust be configured in swarm config or exported into the shell before running curl.- Keep
bccfor external recipients so a human oversight inbox sees outbound email. - Do not add
html;textis the canonical content field.
Reusable Workflow Example: script_upsert
Use this only when the send is part of a reusable workflow. The script resolves the API key from swarm config at runtime and calls the same raw HTTP endpoint with fetch.
Run it from a workflow with args shaped like:
BCC Policy
All outbound emails to external recipients MUST include a human oversight email address in bcc. This gives the operator visibility into what the swarm sends.
Exception: internal emails between the swarm's own agent inboxes do not need BCC.
Human Approval
Never send outreach or cold emails to external recipients without explicit human approval. Draft the email, present it for review, and send only after receiving approval.
Checklist
Before every AgentMail send:
- Use
https://api.agentmail.to/v0/. - Use only
to,bcc,subject, andtextin the send-message JSON body. - Use
text, nottext_body,body, orcontent. - Do not pass
html. - BCC a human oversight address for external recipients.
- Get human approval for outreach or cold email.
- Use raw
curlor inlinescript_runfor one-offs; reservescript_upsertfor reusable workflow sends.
Common Errors
| Symptom | Cause / fix | |
|---|---|---|
404 on /v0/inboxes/.../send | Check the base URL. Use api.agentmail.to, not api.agentmail.ai. | |
422 {"detail":"text Field required"} | The request used text_body or body instead of text. | |
| 401 | AGENTMAIL_API_KEY is not configured in swarm config. In scripts, use swarm.config.get('AGENTMAIL_API_KEY'). | |
| HTML rendering bug | Do not pass html at all. AgentMail renders text correctly. |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtemplates/skills/agentmail-sending/SKILL.md
Popularity
- Repository stars
- 880
- Repository forks
- 120
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/desplega-ai/agent-swarm/agentmail-sending)