Install
openclaw skills install @sendmux.ai/sendmux-email-for-agentsGive OpenClaw agents a Sendmux inbox to receive, triage, route, reply to, and send email with owner approval and scoped credentials.
openclaw skills install @sendmux.ai/sendmux-email-for-agentsThis ClawHub skill connects OpenClaw agents to Sendmux. Some workflows require a Sendmux account and an appropriate Sendmux API key or agent token. Sendmux account usage is external to ClawHub; do not ask users to paste secrets into chat.
Use this skill when the user describes the agent-email problem: an AI agent needs an inbox, mailbox identity, outbound email, triage loop, reply workflow, or human approval path.
| User problem | Route |
|---|---|
| "Give my agent an email address" | sendmux-management to create/inspect domain, mailbox, and mailbox key. |
| "Let my agent register itself" | sendmux-getting-started: install the CLI, run agent:register, read through the durable profile, then invite the owner when sending is needed. |
| "Connect my agent to its inbox" | sendmux-mcp-setup for agent MCP, or sendmux-getting-started for first auth checks. |
| "Read, search, triage, label, sync, reply" | sendmux-mailbox-agent with an smx_mbx_* key or scoped smx_agent_* token. |
| "Send independent outbound notifications" | sendmux-send-email with a send-capable smx_mbx_* key or owner-approved agent profile; batch when there is more than one message. |
| "Upload, download, or forward attachments" | sendmux-attachments for file_path, presigned upload URLs, CLI --attach, SDK file helpers, and short-lived download URLs. |
| "Build this into an app or worker" | SDK path from the task skill; use sendmux-token-efficient-usage for call minimisation. |
| "Show terminal commands" | sendmux-cli. |
If the task crosses setup and runtime, split it:
sendmux-management provisions the mailbox and mailbox API key with an smx_root_* key.smx_mbx_* key.sendmux-mcp-setup connects the agent if the client supports MCP.sendmux-mailbox-agent handles ongoing mailbox read/triage/reply.For self-registration without a human-created key, route to sendmux-getting-started. The canonical path is sendmux agent:register <profile>; do not reproduce a lower-level registration protocol in this router skill.
sendmux-attachments so local files move by path, presigned URL, CLI, or SDK helper. Mailbox upload modes cap each attachment at 7,500,000 bytes; Sending uploads cap each file at 18 MiB and send by attachment_id.mailbox_send_message, sending_send_email, or sending_send_email_batch.smx_root_* for provisioning/admin, send-capable smx_mbx_* keys or owner-approved agent profiles for Sending, and smx_mbx_* keys or durable agent profiles for Mailbox runtime.Use when the user wants a new mailbox for an agent, such as support intake, invoice triage, scheduling, approvals, or lead qualification.
Plan:
sendmux-management.sendmux-mcp-setup if the agent client can use MCP; otherwise use CLI or SDK.mailbox_get_me, CLI mailbox:me:get, or SDK mailboxGetMe.sendmux-mailbox-agent.Mention that DNS/domain setup may be required before a custom address receives mail.
Use when the user wants the agent to start without a human-created API key.
Plan:
@sendmux/cli when the sendmux binary is unavailable.sendmux agent:register <profile> --default --json; include --owner-email when known.--profile <profile>. Read/receive access has no expiry date while the registration remains active.sendmux agent:invite-owner <email> --profile <profile> --json.sending:* commands; the CLI exchanges and caches a one-hour delegated token automatically.Use mailbox-efficient calls:
mailbox_get_changes or query-change endpoints to resume from the prior state.mailbox_count_messages for counts.mailbox_search_message_snippets with small limit for candidate messages.mailbox_batch_get_messages for selected IDs.mailbox_batch_update_messages only after the user confirms labels, flags, or read-state changes.Store state tokens. Do not rescan the whole mailbox.
Use when the agent should prepare a reply but a person approves the send.
Plan:
sendmux-mailbox-agent to read the relevant message or thread.mailbox_send_message for mailbox-centred replies.Idempotency-Key for retryable sends.Use sendmux-send-email when the email is not a reply inside an active mailbox workflow.
sending_send_email, CLI sending:send, or SDK sendingSendEmail.sending_send_email_batch, CLI sending:send:batch, or SDK sendingSendEmailBatch.Idempotency-Key and inspect per-message batch results.When designing a workflow, answer in this order:
smx_root_* for admin, smx_mbx_* for owner-created runtime keys, and a durable agent profile for self-registered read access plus owner-approved delegated sending.This is a router and architecture skill. Hand detailed implementation to the task skill once the route is clear:
sendmux-management: domains, mailbox provisioning, mailbox keys, account admin, webhooks, billing, logs.sendmux-mailbox-agent: mailbox read/search/sync/triage/reply.sendmux-send-email: send bodies, batch send, HTTP-vs-SMTP send choice.sendmux-attachments: upload/download attachments without wasting context on base64.sendmux-mcp-setup: client configuration and hosted/local MCP.sendmux-cli: exact terminal commands and flags.sendmux-token-efficient-usage: cheapest-call doctrine across surfaces.