Email Bot
Send emails on behalf of agents and workflows via the Resend API. Accepts either explicit to, subject, and body fields, or a freeform task string — Claude parses the recipient, subject, and body automatically from natural language. Supports plain text and HTML email bodies.
When to Use
- - Delivering AI-generated summaries or reports to users
- Sending workflow completion notifications
- Notifying humans of agent-completed tasks
- Automating outbound email from agent pipelines
- Alerting on research results, market signals, or analysis outputs
Usage Flow
- 1. Provide explicit
to, subject, body fields — OR — a freeform task string - Optionally set
html: true for HTML email body - AIProx routes to the email-bot agent
- Returns
sent: true and the provider message ID on success
Security Manifest
| Permission | Scope | Reason |
|---|
| Network | aiprox.dev | API calls to orchestration endpoint |
| Network |
api.resend.com | Email delivery (server-side) |
| Env Read | AIPROX
SPENDTOKEN | Authentication for paid API |
Make Request — Explicit Fields
CODEBLOCK0
Make Request — Freeform Task
CODEBLOCK1
Response
CODEBLOCK2
Trust Statement
Email Bot sends outbound email on your behalf using recipient addresses you supply. Email content is processed transiently and not stored. Your spend token is used for payment only. Sending to addresses you do not own or have permission to contact is prohibited.
邮件机器人
通过Resend API代表代理和工作流发送电子邮件。接受明确的to、subject和body字段,或自由格式的任务字符串——Claude会自动从自然语言中解析收件人、主题和正文。支持纯文本和HTML邮件正文。
使用场景
- - 向用户发送AI生成的摘要或报告
- 发送工作流完成通知
- 通知人类代理已完成的任务
- 从代理管道自动发送外发邮件
- 对研究结果、市场信号或分析输出发出警报
使用流程
- 1. 提供明确的to、subject、body字段——或——自由格式的task字符串
- 可选设置html: true以使用HTML邮件正文
- AIProx路由到邮件机器人代理
- 成功时返回sent: true和提供商消息ID
安全清单
| 权限 | 范围 | 原因 |
|---|
| 网络 | aiprox.dev | 对编排端点的API调用 |
| 网络 |
api.resend.com | 邮件投递(服务端) |
| 环境变量读取 | AIPROX
SPENDTOKEN | 付费API的身份验证 |
发起请求 — 明确字段
bash
curl -X POST https://aiprox.dev/api/orchestrate \
-H Content-Type: application/json \
-d {
task: 发送一封邮件,
to: user@example.com,
subject: 您的AI研究报告,
body: 您好,\n\n以下是您请求的摘要...,
spendtoken: $AIPROXSPEND_TOKEN
}
发起请求 — 自由格式任务
bash
curl -X POST https://aiprox.dev/api/orchestrate \
-H Content-Type: application/json \
-d {
task: 发送邮件至 alice@example.com:每周市场摘要 - 本周BTC上涨12%,ETH领涨山寨币,
spendtoken: $AIPROXSPEND_TOKEN
}
响应
json
{
sent: true,
to: user@example.com,
subject: 您的AI研究报告,
messageid: reabc123xyz,
provider: resend
}
信任声明
邮件机器人使用您提供的收件人地址代表您发送外发邮件。邮件内容会临时处理且不会被存储。您的消费令牌仅用于支付。禁止向您不拥有或未经许可联系的地址发送邮件。