Set up autonomous email sending, webhook-driven inbound receiving, and local inbox storage for AI agents using Resend.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install director-email-setup
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install director-email-setup using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Agent Email Setup skill provides a robust architectural framework for giving your AI agents their own fully functional, autonomous email addresses. By integrating Resend with an Express/Node.js backend, your agent can securely send outgoing messages, receive inbound emails via real-time webhooks, verify external account links, and manage transactional flows without manual intervention.
As part of the Openclaw Skills ecosystem, this setup bridges the gap between static LLMs and dynamic web-based communication. It allows agents to act as independent communicators with custom domains, enabling automated workflows such as account registration, processing incoming user requests, and managing notifications programmatically.
email.received event payload to your configured Express backend.mail/inbox/ server directory.Configure your custom domain on Resend to enable sending and receiving:
RESEND_KEY="re_xxxxx"
# Add domain
curl -s -X POST -H "Authorization: Bearer $RESEND_KEY" \
-H "Content-Type: application/json" \
https://api.resend.com/domains \
-d '{"name": "yourdomain.com", "region": "us-east-1"}'
# Get DNS records to configure
curl -s -H "Authorization: Bearer $RESEND_KEY" \
https://api.resend.com/domains/yourdomain.com | jq '.records'
Add the returned DNS records (TXT, MX, CNAME) to your DNS provider. Wait for verification (usually minutes).
Verify status:
curl -s -H "Authorization: Bearer $RESEND_KEY" \
https://api.resend.com/domains/yourdomain.com | jq '{status, capabilities}'
Both sending and receiving capabilities must be enabled on Resend.
Create routes/inboundEmail.js in your Express backend. Key requirements:
/api/inbound-emailRESEND_WEBHOOK_SECRETmail/inbox/Mount in your server:
const inboundEmailRoutes = require('./routes/inboundEmail');
app.use('/api/inbound-email', inboundEmailRoutes);
curl -s -X POST -H "Authorization: Bearer $RESEND_KEY" \
-H "Content-Type: application/json" \
https://api.resend.com/webhooks \
-d '{
"endpoint": "https://yourdomain.com/api/inbound-email",
"events": ["email.received"],
"enabled": true
}' | jq '{id, signing_secret}'
Save the returned signing_secret — you will need it for webhook verification.
mkdir -p mail/inbox
touch mail/inbox/.lastcheck
Store these credentials in your secrets configuration:
RESEND_API_KEYRESEND_WEBHOOK_SECRETAGENT_EMAILThis skill stores inbound emails as localized JSON objects and uses state variables to track processing pipelines.
| Path | Description | Format |
|---|---|---|
mail/inbox/ |
Directory where raw incoming email payloads are stored. | Folder |
mail/inbox/[id].json |
Raw structured email object matching Resend's schema. | JSON file |
mail/inbox/.lastcheck |
State file storing timestamp marker of the last cron run. | File |
{
"id": "email_id_xxxxx",
"from": "[email protected]",
"to": ["[email protected]"],
"subject": "Verification Code: 4920",
"text": "Your verification code is 4920.",
"html": "<p>Your verification code is 4920.</p>",
"processed": false
}
Loading
A standardized OKR and weekly reporting framework designed specifically for the high-velocity execution cycles of autonomous AI agents.

An AI-powered local personal finance assistant that processes conversational text or voice to categorize expenses, provide monthly analytics, and send budget overrun warnings in 5 seconds.

An automated tool that turns raw API code, HAR traffic logs, and packet captures into production-ready, validated OpenAPI 3.x specifications.

A structured, multi-role agent collaboration framework that orchestrates Gitea issues and PRs to streamline autonomous team workflows.

An AI-agent tool designed to manage files and check the status of a Bambu P1S 3D printer using secure FTPS and system-level scripting.

An AI-powered printer control skill leveraging macOS CUPS to print images, PDFs, and text documents via local CLI commands.








































