← 返回
未分类 Key 中文

Openclaw

Give an AI agent a real inbox and outbound email using Robotomail. Use this skill when the user asks you to send email, check inbox, read messages, reply to...
为AI代理提供真实的收发邮件功能,使用Robotomail。在用户请求发送邮件、查看收件箱、阅读或回复邮件时使用此技能。
johnjoubert johnjoubert 来源
未分类 clawhub v1.0.5 2 版本 99833.1 Key: 需要
★ 1
Stars
📥 578
下载
💾 3
安装
2
版本
#latest

概述

Robotomail — Give Your AI Agent a Real Inbox

Robotomail lets an AI agent send, receive, and react to email programmatically. It is API-first email infrastructure for autonomous agents, assistants, and workflows.

Use Robotomail when you want an agent to:

  • send outbound email, reminders, updates, or follow-ups
  • read inbound email from a real inbox
  • react to incoming email via webhooks or real-time SSE events
  • reply in existing threads using normal email semantics
  • use a hosted robotomail.co address or a custom domain

Best-fit use cases

1. Agent support inbox

Give your agent a real inbox so it can classify, summarize, draft, or reply to incoming support emails.

2. Outbound follow-ups and reminders

Let an agent send reminders, nudges, receipts, booking confirmations, or outbound follow-ups from its own mailbox.

3. Real-time email triggers

Subscribe to inbound email events with webhooks or SSE so your agent can wake up and act immediately.

Fast start

If the user is new to Robotomail, the fastest path is:

  1. Sign up at https://robotomail.com or create an account via POST /v1/signup
  2. Create or list a mailbox with GET /v1/mailboxes or POST /v1/mailboxes
  3. Send a test email with POST /v1/mailboxes/{id}/messages
  4. Read inbound email with GET /v1/mailboxes/{id}/messages?direction=INBOUND
  5. Subscribe to inbound events via webhook or SSE

Authentication

All requests require an API key in the Authorization header:

Authorization: Bearer <ROBOTOMAIL_API_KEY>

Base URL: https://api.robotomail.com

If the user doesn't have an API key yet, they can sign up at https://robotomail.com or you can create an account via POST /v1/signup.

Quick Reference — What Can I Do?

TaskMethodEndpoint
---------
Send an emailPOST/v1/mailboxes/{id}/messages
List inbox messagesGET/v1/mailboxes/{id}/messages?direction=INBOUND
Read a specific messageGET/v1/mailboxes/{id}/messages/{msgId}
List conversation threadsGET/v1/mailboxes/{id}/threads
Read a threadGET/v1/mailboxes/{id}/threads/{tid}
List mailboxesGET/v1/mailboxes
Create a mailboxPOST/v1/mailboxes
Add a custom domainPOST/v1/domains
Verify domain DNSPOST/v1/domains/{id}/verify
Set up a webhookPOST/v1/webhooks
Stream events with SSEGET/v1/events
Upload an attachmentPOST/v1/attachments (multipart)
Download an attachmentGET/v1/attachments/{id}
Check account & usageGET/v1/account

For full endpoint details including request/response schemas, read references/api-reference.md.

Webhooks vs SSE

Use webhooks when Robotomail should push events to your public HTTPS endpoint.

Use SSE when the agent wants a live event stream over a single long-lived connection, for example when running a local listener or agent loop.

If the user says things like "stream inbound mail", "listen for new messages", or "real-time inbox events", prefer SSE.

Decision Tree — Common Tasks

"Send an email"

  1. List mailboxes: GET /v1/mailboxes — find the mailbox to send from
  2. Send: POST /v1/mailboxes/{id}/messages with to, subject, bodyText (and optionally bodyHtml)
  3. To reply to an existing message, include inReplyTo with the original message's messageId header value

"Check my inbox" / "Read my email"

  1. List mailboxes: GET /v1/mailboxes
  2. Fetch inbound messages: GET /v1/mailboxes/{id}/messages?direction=INBOUND
  3. Read a specific message: GET /v1/mailboxes/{id}/messages/{msgId}

"Reply to an email"

  1. Read the original message to get its messageId field
  2. Send reply: POST /v1/mailboxes/{id}/messages with inReplyTo set to the original's messageId value
  3. Threading is automatic — the reply joins the same thread

"Set up email for a new domain"

  1. Add domain: POST /v1/domains with {"domain": "example.com"}
  2. Read the dnsRecords from the response — tell the user to configure these at their DNS provider
  3. After DNS is configured, verify: POST /v1/domains/{id}/verify
  4. Once verified, create a mailbox: POST /v1/mailboxes with {"address": "agent", "domainId": ""}

"Set up a webhook for incoming email"

  1. Create webhook: POST /v1/webhooks with url and events: ["message.received"]
  2. Save the secret from the response, it is shown only once
  3. Verify deliveries with X-Robotomail-Signature header (HMAC-SHA256 of payload using secret)

See references/webhook-verification.md for signature verification code.

"Listen for incoming email in real time" / "Use SSE"

  1. Connect to GET /v1/events
  2. Filter or react to message.received, message.delivered, message.bounced, and message.complaint
  3. Use SSE when the agent wants a live stream instead of public webhook delivery

"Send an email with an attachment"

  1. Upload the file: POST /v1/attachments (multipart/form-data, field name file, max 25MB)
  2. Note the returned attachment id
  3. Send the message with attachments: [""]

"Read an inbound email's attachments" / "Handle inline images"

Inbound messages with attachments expose them on two surfaces with different shapes. Pick the right one for your access pattern — do not assume REST responses contain ready-to-use download URLs.

  1. Webhook / SSE message.received payloaddata.attachments[] is delivered with a ready-to-use download_url field (presigned R2 URL, valid 24h from publish time) on each attachment, alongside id, filename, content_type, size_bytes, and content_id. Field names are snake_case. Fetch each file directly — no Authorization header needed:

```

for att in event.data.attachments:

bytes = HTTP_GET(att.download_url)

save_to(att.filename, bytes)

```

  1. REST GET /v1/mailboxes/{id}/messages and GET /v1/mailboxes/{id}/messages/{msgId}attachments[] contains metadata only (id, filename, contentType, sizeBytes, contentId), no URL field. To download, call GET /v1/attachments/{id} for each attachment id and use the url field on that response. Field names are camelCase. This is also how you refresh an expired download_url from an old webhook/SSE replay.

Inline images: when an attachment's content_id (snake_case in webhook/SSE) or contentId (camelCase in REST) is non-null, the attachment is referenced in body_html / bodyHtml as . Rewrite each cid: reference to a real downloadable URL before passing the HTML to a renderer or vision model. From a webhook/SSE payload (where download_url is already on the attachment):

for att in event.data.attachments where att.content_id is not None:
    body_html = body_html.replace(f"cid:{att.content_id}", att.download_url)

From a REST message read, fetch a presigned URL per inline attachment first:

for att in message.attachments where att.contentId is not None:
    url = GET(f"/v1/attachments/{att.id}").url
    bodyHtml = bodyHtml.replace(f"cid:{att.contentId}", url)

Drop limits: if a message has more than 20 attachments, or any single attachment exceeds 25 MB, the payload includes attachments_dropped: true and attachments_dropped_reason: "size" | "count" | "both". The message itself is still delivered, but the over-limit attachments are not stored. Tell the user if you see this flag.

Key Constraints

  • Daily send limits: 100/day (free), 500–2,000/day (paid, varies by tier) per mailbox — resets at midnight UTC
  • Monthly send limits: 5,000/month (free), 15,000/month (Developer), unlimited (Growth, Scale) per mailbox
  • Velocity limits: 30 messages/min per mailbox, 60 messages/min per account — returns 429 if exceeded
  • Bounce rate: Must stay below 3% over a 7-day rolling window (minimum 50 messages). Exceeding this auto-suspends the mailbox.
  • Complaint rate: Must stay below 0.05% over a 7-day rolling window (minimum 50 messages). Exceeding this auto-suspends the mailbox.
  • Attachment size: Max 25MB per file
  • Storage: 1GB (free), 10GB (Developer), 25GB (Growth), 100GB (Scale)
  • Free tier: 3 mailboxes on robotomail.co only
  • Paid plans start at $19/mo (Developer): 10+ mailboxes, custom domains

If a send returns 429, the mailbox has hit its daily/monthly limit or velocity limit. Tell the user and suggest slowing down or upgrading if on the free plan.

Error Handling

All errors return {"error": "message"} with standard HTTP status codes:

  • 401 — Missing or invalid API key
  • 403 — Account suspended or scoped key accessing a restricted resource. When suspended, response includes { "suspended": true, "reason": "bounce_rate_exceeded" }. Tell the user to contact support@robotomail.com.
  • 404 — Resource not found
  • 429 — Rate limit, velocity limit, or send quota exceeded
  • 413 — Attachment too large

Tips

  • Always use bodyText for the plain-text version. Add bodyHtml only when rich formatting is needed.
  • Use threads (GET /v1/mailboxes/{id}/threads/{tid}) to see full conversation history before replying.
  • When listing messages, use since parameter (ISO-8601) to fetch only recent messages.
  • Suppression list (GET /v1/suppressions) contains bounced/complained addresses — check before sending to addresses that previously failed.

版本历史

共 2 个版本

  • v1.0.5 当前
    2026-05-03 04:55 安全 安全
  • v1.0.3
    2026-03-30 14:21

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 838 📥 314,284
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,107 📥 830,667
ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,471 📥 535,514