Build AI agents with their own email inboxes. Requires an AgentMail API key — sign up free.
| Example | Description |
|---|---|
| LangChain Terminal | Chat with a LangChain agent with AgentMail tools via terminal |
| OpenAI Terminal | Chat with an OpenAI agent with AgentMail tools via terminal |
| Example | Description |
|---|---|
| Email Agent | Agent that responds autonomously via email |
| Sales Agent | Agent that sells products to prospects via email |
| Dinner Agent | Agent that coordinates dinner plans via email |
| GitHub Maintainer Agent | Agent that manages GitHub issues and PRs via email |
Production-ready agent templates. Each has matching Python + TypeScript implementations and is tested end-to-end against real AgentMail + Claude APIs. Featured at agentmail.to/build/templates.
Productivity
| Example | Description |
|---|---|
| Scheduling Agent | Books meetings via email with calendar invite (.ics) attachments |
| Inbox Zero | Drafts replies, flags what needs you, sends a morning digest |
| Note Taker | Forward emails — they become Markdown notes you can search |
| Approval Inbox | Your inbox is your approval queue. Configure once, approve everything from email |
Sales & Outbound
| Example | Description |
|---|---|
| GTM Agent | Cold outbound + warm-reply handoff to your sales team |
| Sales Signal Router | Triage inbound sales mail. Ping Slack. EOD digest |
| Negotiation Agent | Multi-party negotiator for used cars, apartments, B2B contracts |
Support
| Example | Description |
|---|---|
| Support Agent | Auto-respond to support tickets, escalate when stuck |
| Docs Assistant | Answers product questions by web-searching your docs (cited) |
Finance
| Example | Description |
|---|---|
| Invoice Processor | Claude PDF vision extracts invoices, matches POs, auto-approves under limit |
| x402 Payment Agent | Vendor invoices land in inbox. Allowlisted vendors auto-pay via x402 |
Marketing & Personal
| Example | Description |
|---|---|
| Newsletter Digest | Summarizes daily newsletter blasts into one morning digest |
| Dinner Reservation | Books dinner reservations end-to-end (2-thread orchestration) |
| Browser Signup Agent | Sign up for anything on the web + handle OTP / verification links |
# Clone the repo
git clone https://github.com/agentmail-to/agentmail-examples.git
cd agentmail-examples
# Set your API key
export AGENTMAIL_API_KEY=am_us_xxx
# Run an example
cd email-agent
pip install -r requirements.txt
python main.pyTo pull just one template (without the whole monorepo):
npx degit agentmail-to/agentmail-examples/sales-signal-router my-signal-router
cd my-signal-router/python
pip install -r requirements.txt && python agent.py
### Template Agents
Production-shaped reference agents. Each lives in its own subfolder and can be pulled
out as a standalone project in one command:
```bash
npx degit agentmail-to/agentmail-examples/<template-name> my-new-app| Template | What it does |
|---|---|
| agentmail-approval-inbox | Human-in-the-loop approval flow for agent actions |
| agentmail-browser-signup-agent | Browser agent that handles email signups end-to-end |
| agentmail-dinner-reservation | Concierge agent that books restaurant tables via email |
| agentmail-docs-assistant | Answers questions about your docs over email |
| agentmail-gtm-agent | Go-to-market outreach agent |
| agentmail-inbox-zero | Triage and zero out an overloaded inbox |
| agentmail-invoice-processor | Parses invoices from email and routes them |
| agentmail-negotiation-agent | Negotiates via email on your behalf |
| agentmail-newsletter-digest | Summarizes newsletter subscriptions into a digest |
| agentmail-note-taker | Captures and organizes notes from email threads |
| agentmail-sales-signal-router | Routes inbound sales signals to the right person |
| agentmail-scheduling-agent | Schedules meetings via email |
| agentmail-support-agent | Customer support agent over email |
| agentmail-x402-payment-agent | Handles x402 payments via email |
| collections-agent | Polite, persistent collections follow-up |
| contract-redline-agent | Redlines contracts received via email |
| cold-email-researcher | Research + cold outreach in one loop |
| hiring-screener-agent | Screens inbound applicants |
| legal-intake-agent | Intake form-via-email for legal practices |
| podcast-booking-agent | Books podcast guests / appearances |
| receipt-parser-agent | Extracts receipt data from forwarded email |
| recruiter-coordinator | Coordinates candidate scheduling with recruiters |
| agent-pen-pal | Pen-pal agent that maintains long-running email correspondences |
| agentmail-mastra-template | Mastra framework template for AgentMail agents |
| ai-email-agent-template | Replit-ready AgentMail + OpenAI starter — fork and run |
| cc-the-agent | CC an agent on any thread to have it act on the conversation |
| nextjs-agentmail-starter | Next.js starter project wired up with AgentMail |
| voice-to-email | Records voice, transcribes via Whisper, sends as email |
Looking for the previous repo URLs? They're archived but still accessible - the contents now live in this monorepo.
## Links
- [AgentMail](https://agentmail.to) — The email API for AI agents
- [Documentation](https://docs.agentmail.to)
- [Python SDK](https://github.com/agentmail-to/agentmail-python)
- [TypeScript SDK](https://github.com/agentmail-to/agentmail-node)
- [Discord](https://discord.gg/ZYN7f7KPjS)