# Describe the feature to Leap. Bird delivers the messages.

Point Leap at a Bird guide and describe what your app should send. Leap writes an Encore endpoint with the Bird SDK, and your API key lives in a Leap secret.

[Get Started](/dashboard/signup)

[Contact Sales](/demo)

## 从提示词到 送达。

你的智能体可以设置通道、管理客户并确认送达。 通过 MCP 和 CLI 实现完整的读写访问。

**MCP**: `https://mcp.bird.com`

```json
{
  "name": "voice_legs_list"
}
```

Examples: [MCP](/zh-sg/ai/leap.mcp.md) · [CLI](/zh-sg/ai/leap.cli.md) · [TypeScript](/zh-sg/ai/leap.ts.md) · [Python](/zh-sg/ai/leap.py.md) · [Go](/zh-sg/ai/leap.go.md) · [PHP](/zh-sg/ai/leap.php.md) · [HTTP](/zh-sg/ai/leap.http.md)

## 将 Bird 添加到 Leap。 然后开始工作。

Leap 根据提示词编写集成代码，你添加 API 密钥。

Leap 提示词

```
Add a backend endpoint to send email with Bird. Follow https://bird.com/docs/get-started/send-your-first-email: use the @messagebird/sdk package and read the API key from a secret named BirdApiKey.
```

-

### 询问 Leap

将提示词粘贴到 Leap 的对话中。Leap 会阅读 Bird 的快速入门指南，使用 Bird SDK 编写端点，并声明 BirdApiKey 密钥。

-

### 设置密钥

在 Bird 中依次打开 Developers 和 API keys，创建一个 API 密钥。在 Leap 中打开 Settings，然后打开 Secrets，将密钥粘贴为 BirdApiKey 的值。对话中的 Missing secret value 提示会打开同一界面。

-

### 发送测试

调用 Leap 创建的端点。快速入门指南从 onboarding@messagebird.dev 发送到 delivered@messagebird.dev，这是一个沙盒地址，每条消息都会送达。在向客户发送之前，请先验证你自己的域名。

[阅读快速入门指南](/docs/get-started/send-your-first-email)

## 由智能体构建。 为你的用户准备就绪。

你发布的应用需要自己的服务端连接来访问 Bird。

### 将密钥保存在服务端

Leap 会加密 BirdApiKey 值，并在运行时将密钥传递给你的后端。你的前端调用后端，后端再调用 Bird。

[探索 API](/docs/api)

### 使用你控制的发送者

验证你的邮件域名，或为所选渠道配置一个合规的发送者。

[准备你的首次发送](/docs)

### 展示真实结果

保存消息 ID。根据消息状态或投递事件更新你的应用。

[跟踪结果](/docs/guides/webhooks)

## 几个不错的 起点。

指定 Bird 产品和密钥，Leap 来编写后端代码。

发送欢迎邮件

```
When a user signs up, send a welcome email with Bird using the @messagebird/sdk package and the BirdApiKey secret. Store the returned message ID with the user.
```

发送订单更新短信

```
When an order ships, send the customer an SMS with Bird, including the tracking link. Use the @messagebird/sdk package and the BirdApiKey secret.
```

跟踪配送

```
Add an endpoint to read a Bird email message by its stored ID and return its status, so the order page shows whether the email was delivered.
```

## 在你的第一个任务之前。

连接正常工作背后的细节。

Leap 如何学习 Bird API？

从你的提示词中学习。链接一份 Bird 指南（例如邮件快速入门），Leap 会在编写端点之前先读取该页面。

API 密钥存储在哪里？

存储在 Leap 密钥库中。Leap 会加密该值，并在运行时将密钥提供给你的应用，因此密钥不会出现在你的代码中。

我需要设置区域吗？

不需要。Bird SDK 会从你的 API 密钥中读取区域，因此以 bk_eu1_ 开头的密钥会自动调用欧盟主机，无需额外配置。

## 继续构建。 一切互联。

借助工具和指南，迈出项目的下一步。

- [Email 快速入门](/docs/get-started/send-your-first-email) — 创建密钥并发送第一封邮件。

- [SDK 快速入门](/docs/get-started/quickstarts) — 在每种语言中安装并调用 Bird。

- [其他 AI 工具](/ai) — 从其他工具使用同一个工作区。



## Related resources

- [Setting up your coding agent](/learn/basics/setting-up-your-coding-agent) (video)
- [Set up your coding agent](/docs/ai/set-up-your-agent) (docs)
- [What is an MCP server, and how does an agent use one to send messages?](/explained/platform/what-is-an-mcp-server-and-how-does-an-agent-send-messages) (answer)
- [Build with AI agents](/learn/paths/agents) (course)

[Get an implementation brief](/learn/workspace?topic=agents)
