Resend 邮件渠道集成
add-resend
通过 Chat SDK 添加 Resend(电子邮件)渠道集成。
- License 许可
- MIT
- 最近更新
- 2026-10-30
- Stars
- ★ 5
- Forks
- 2
01 前言 Front Matter
- name
- add-resend
- description
- Add Resend (email) channel integration via Chat SDK.
02 资源文件 2
03 SKILL.md 正文
Add Resend Email Channel
Connect NanoClaw to email via Resend for async email conversations.
Install
NanoClaw doesn't ship channels in trunk. This skill copies the Resend adapter in from the channels branch.
Pre-flight (idempotent)
Skip to Credentials if all of these are already in place:
src/channels/resend.tsexistssrc/channels/index.tscontainsimport './resend.js';@resend/chat-sdk-adapteris listed inpackage.jsondependencies
Otherwise continue. Every step below is safe to re-run.
1. Fetch the channels branch
git fetch origin channels
2. Copy the adapter
git show origin/channels:src/channels/resend.ts > src/channels/resend.ts
3. Append the self-registration import
Append to src/channels/index.ts (skip if the line is already present):
import './resend.js';
4. Install the adapter package (pinned)
pnpm install @resend/chat-sdk-adapter@0.1.1
5. Build
pnpm run build
Credentials
- Go to resend.com and create an account.
- Add and verify your sending domain.
- Go to API Keys and create a new key.
- Set up a webhook:
- Go to Webhooks > Add webhook.
- URL:
https://your-domain/webhook/resend. - Events: select email.received.
- Copy the signing secret.
Configure environment
Add to .env:
RESEND_API_KEY=re_...
RESEND_FROM_ADDRESS=bot@yourdomain.com
RESEND_FROM_NAME=NanoClaw
RESEND_WEBHOOK_SECRET=your-webhook-secret
Sync to container: mkdir -p data/env && cp .env data/env/env
Next Steps
If you're in the middle of /setup, return to the setup flow now.
Otherwise, run /manage-channels to wire this channel to an agent group.
Channel Info
- type:
resend - terminology: Resend handles email. Each email thread (identified by subject/In-Reply-To headers) is a separate conversation. The "from address" is the bot's identity.
- how-to-find-id: The platform ID is the from email address (e.g.
bot@yourdomain.com). Each sender's email thread becomes its own conversation. - supports-threads: yes (via email threading headers -- replies to the same thread stay together)
- typical-use: Async communication -- email conversations with longer response expectations
- default-isolation: Same agent group if you want your agent to handle email alongside other channels. Separate agent group if email contains sensitive correspondence that shouldn't be accessible from other channels.
04 同仓库更多 Skills
WhatsApp 消息格式化
whatsapp-formatting
为 WhatsApp 格式化消息,包括可渲染为真实 WhatsApp 标签的提及(mention)。在 WhatsApp 对话中回复时使用(platform_id / chatJid 以 @s.whatsapp.net 或 @g.us 结尾)。
新频道欢迎引导
welcome
向新连接的频道介绍自己。当频道首次接入时自动触发。发送友好的问候和简要的功能概述。
Vercel 应用部署
vercel-cli
将应用部署到 Vercel。当用户要求部署、发布 Web 应用,或管理 Vercel 项目、域名和环境变量时使用。
Slack 消息格式化
slack-formatting
使用 mrkdwn 语法为 Slack 格式化消息。当回复 Slack 频道时使用(文件夹以“slack_”开头,或 JID 包含 slack 标识符)。
智能体自我定制
self-customize
定制你自己的智能体——添加能力、安装包、添加 MCP 服务器、编辑代码或 CLAUDE.md。当用户要求你添加功能、安装工具或修改工作方式时使用。对于非平凡的代码改动,请通过 create_agent 委派给构建智能体处理。
OneCLI 网关凭证代理
onecli-gateway
OneCLI 网关:一种透明的 HTTPS 代理,可将存储的凭证注入到对外调用中。当用户要求读取电子邮件、查看日历、访问 GitHub 仓库、创建 issue、检查 Stripe 付款,或与任何外部服务或 API 交互时,你必须使用本技能。不要使用浏览器扩展或 OAuth CLI 工具。直接发起 HTTP 请求;网关会自动注入凭证。