VM0VM0
Agent Skills

AgentMail

Manage email inboxes and messages for AI agents with AgentMail

AgentMail is an email infrastructure platform built for AI agents. This skill enables your agent to create inboxes, send and receive emails, manage threads, and configure webhooks.

Required Environment

NameTypeDescription
AGENTMAIL_API_KEYsecretAgentMail API key

Get your API key from the AgentMail Console under the API Keys section.

Configuration

vm0.yaml
version: "1.0"

agents:
  my-agent:
    framework: claude-code
    skills:
      - https://github.com/vm0-ai/vm0-skills/tree/main/agentmail

Run

Store your secret on the platform (recommended, one-time setup):

vm0 secret set AGENTMAIL_API_KEY your-agentmail-api-key

Then run your agent - secrets are automatically loaded:

vm0 run my-agent "create a new inbox and send a welcome email"

For CI/CD or temporary overrides, pass secrets at runtime: --secrets AGENTMAIL_API_KEY=value. See Environment Variables for details.

Example Instructions

AGENTS.md
# Email Outreach Agent

You use AgentMail to manage email communications.

## Workflow

1. Create a dedicated inbox for the campaign
2. Send personalized emails to contacts
3. Monitor for replies via threads
4. Track delivery status and bounces

## Rules

- Use draft mode for emails requiring approval
- Label threads by status (replied, pending, closed)
- Register webhooks for real-time delivery notifications
AGENTS.md
# Support Inbox Agent

You use AgentMail to manage a support email inbox.

## Workflow

1. Check the inbox for new messages
2. Categorize by topic and urgency
3. Reply to common questions automatically
4. Escalate complex issues with labels

## Labels

- urgent: needs immediate attention
- billing: payment-related questions
- technical: product issues
- general: everything else