在你自己的项目中构建。
使用与 Bird 产品页面相同的 SDK 示例,然后为你的编码代理编写一份包含你练习过的失败路径的简报。
互动练习 · English
Make your first message land.
A customer places an order. Give them a clear, personal confirmation, and know what happens after you send.
此浏览器练习模拟消息收发。你的操作在离开前会保留在此页面。登录后可保存进度和评估结果。
练习输出
Your practice output will appear here.
显示提示
Use a customer name and an order number. Then send the message and watch the status change.
发送到邮件沙盒
在你自己的服务器环境中配置 SDK 和 API 密钥。此示例使用 Bird 指定的测试收件人。
1
2
3
4
5
6
7
8
9
10
// Install the SDK
// npm install @messagebird/sdk
const msg = await bird.email.send({
from: { email: "onboarding@messagebird.dev", name: "Bird" },
to: ["delivered@messagebird.dev"],
subject: "Hello from Bird",
html: "<p>My first Bird email.</p>",
});
console.log(msg.id, msg.status); // "em_…", "accepted"编码代理简报
# Build with Bird: Email Read these current sources before proposing an implementation: - Send your first email: https://bird.com/docs/get-started/send-your-first-email - Email: https://bird.com/email-api ## Task Help me implement Email in my project. First inspect the application and identify the relevant server, framework and existing Bird integration. Confirm the exact workflow and supported surface against the linked documentation. Some operations are available only in the dashboard. Do not invent endpoints or derive API contracts from a learning simulation. ## Implementation Use the official Bird SDK or CLI where supported. Keep credentials on the server and request the smallest necessary permissions. Follow the channel's documented test procedure before proposing any external send or production change. Keep request acceptance separate from delivery. For incoming events, verify signatures using the original request body, deduplicate stable identifiers, and apply valid state transitions. Respect recipient preferences and channel requirements. ## Acceptance Show the implementation and relevant tests. Exercise the documented failure paths, invalid signatures and duplicate events where applicable. Explain any dashboard steps or missing prerequisites. Ask for approval before sending to real recipients or changing production.