Index of every page on this site: llms.txt
All skills
agentmail-to avatar

/agentmail

@8b3d9ae
Run it yourself

Build with the AgentMail TypeScript or Python SDK for inbox, message, thread, draft, attachment, domain, allow/block list, pod, webhook, and WebSocket workflows, including programmatic agent sign-up, domain/DNS administration, and deliverability triage (bounces, spam, blocked mail). Use when implementing or reviewing AgentMail API code; do not use for direct mailbox operations, CLI usage, MCP setup, or framework-toolkit integration.

Use this Skill: https://skilld.dev/gh/agentmail-to/agentmail-skills/agentmail

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesdeliverability.md

≈524 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Deliverability Triage

Use this when "my agent's email didn't arrive." Find the branch that matches the symptom.

Sent, but bounced

  • Subscribe to the message.bounced event (webhook or WebSocket) — a successful send() call only confirms AgentMail accepted the message, not that it was delivered.
  • Check whether feedback_enabled is set on the sending domain. When enabled, AgentMail routes bounce and complaint notifications to your inboxes; if it was never set, you may be missing that feedback entirely. See admin.md.
  • Self-monitor bounce rate with client.metrics.query_events(event_types=["message.bounced"], ...) / client.metrics.queryEvents({ eventTypes: ["message.bounced"], ... }).

Delivered, but landing in spam

  • Check the sending domain's DKIM and SPF records for the two known misconfigurations: a Route 53 DKIM TXT value with a space between its quoted halves, and a second competing SPF record instead of one merged record. See admin.md.
  • Confirm the domain was actually verified — domains.create() returns a records field listing what to add at your registrar; domains.verify() must succeed afterward.

Inbound mail never arrives ("blocked" or missing)

  • Check the receiving inbox's allow/block lists for direction="receive". A block entry — or a receive-direction allow list that excludes the sender — will filter the message before it reaches you. Block always takes priority over allow. See admin.md.
  • If the credential has the required label permissions, subscribe to message.received.spam / message.received.blocked to see mail AgentMail classified as spam or blocked rather than routed to plain message.received. See websockets.md / webhooks.md.

Domain not verified

  • Custom domains need verification before they're fully usable; @agentmail.to inboxes need none. Add the SPF/DKIM/DMARC records from the records field returned by domains.create() at your registrar, then call domains.verify(domain_id).

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warnings1mo5 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill provides an SDK for the AgentMail email platform, enabling AI agents to manage inboxes, send messages, and handle webhooks. It follows security best practices by recommending environment variables for secret management and explicitly warning developers to treat all incoming email content as untrusted. No malicious patterns or unauthorized behaviors were detected.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: MEDIUM · 1 issue

  • Runlayer9mo

    2/3 files flagged

  • ZeroLeaks7mo

    3 findings · Score: 69/100

Signed by skilld at 8b3d9ae. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 4 months ago

README badge

README badge for agentmail-to/agentmail-skills

AgentMail is an API-first email platform that gives AI agents dedicated email inboxes for sending, receiving, and managing messages programmatically. The SDK supports multi-tenant pods, label-based organization, draft creation for human approval, attachment handling, and real-time event notifications via webhooks or websockets. Available in TypeScript/Node and Python.

Generated from the current SKILL.md.

Does this support both TypeScript and Python?
Yes. The SDK is available for both Node.js/TypeScript (npm install agentmail) and Python (pip install agentmail).
Can I use custom domains for agent email addresses?
Yes. You can create inboxes with a custom username and domain (e.g., support@yourdomain.com) or let AgentMail auto-generate an address.
How do I set up real-time email notifications?
AgentMail supports both webhooks (HTTP-based, requires a public URL) and websockets (persistent connection, no public URL needed). See the webhooks.md and websockets.md reference files.
Does this support human-in-the-loop workflows?
Yes. You can create draft messages for human approval before sending them, then convert the draft to a sent message via the API.
How does multi-tenant isolation work?
Use pods to create isolated inbox namespaces per customer. Each pod gets its own set of inboxes scoped within it, useful for SaaS platforms.

Generated from the current SKILL.md. These answers refresh after source changes.