Files
sim/apps/docs/content/docs/zh/tools/twilio_sms.mdx
Waleed 9a6a6fdacb improvement(docs): updated with new ss, docs script updated to copy items from main app into docs for tools (#1918)
* improvement(docs): updated script to copy over icons, cleanup unnecessary pages

* updated script with auto-icon generation

* ignore translations, only icons changed

* updated images

* updated i18n.lock

* updated images
2025-11-12 01:15:23 -08:00

61 lines
2.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Twilio SMS
description: 发送短信消息
---
import { BlockInfoCard } from "@/components/ui/block-info-card"
<BlockInfoCard
type="twilio_sms"
color="#F22F46"
/>
{/* MANUAL-CONTENT-START:intro */}
[Twilio SMS](https://www.twilio.com/en-us/sms) 是一个强大的云通信平台,能够让企业将消息功能集成到其应用程序和服务中。
Twilio SMS 提供了一个强大的 API用于以编程方式在全球范围内发送和接收短信。凭借覆盖 180 多个国家和 99.999% 的正常运行时间 SLATwilio 已成为通信技术领域的行业领导者。
Twilio SMS 的主要功能包括:
- **全球覆盖**:通过多个国家的本地电话号码向全球收件人发送消息
- **可编程消息**:通过 webhooks、送达回执和调度选项自定义消息传递
- **高级分析**:跟踪送达率、参与度指标,并优化您的消息传递活动
在 Sim 中Twilio SMS 集成使您的代理能够将这些强大的消息功能作为其工作流程的一部分。这为复杂的客户参与场景创造了机会,例如预约提醒、验证码、警报和互动对话。该集成弥合了您的 AI 工作流程与客户通信渠道之间的差距,使您的代理能够将及时、相关的信息直接传递到用户的移动设备。通过将 Sim 与 Twilio SMS 连接,您可以构建智能代理,通过客户首选的通信渠道与他们互动,在自动化常规消息任务的同时提升用户体验。
{/* MANUAL-CONTENT-END */}
## 使用说明
将 Twilio 集成到工作流程中。可以发送 SMS 消息。
## 工具
### `twilio_send_sms`
使用 Twilio API 向单个或多个收件人发送短信。
#### 输入
| 参数 | 类型 | 必需 | 描述 |
| --------- | ---- | -------- | ----------- |
| `phoneNumbers` | 字符串 | 是 | 要发送消息的电话号码,用换行符分隔 |
| `message` | 字符串 | 是 | 要发送的消息 |
| `accountSid` | 字符串 | 是 | Twilio 账户 SID |
| `authToken` | 字符串 | 是 | Twilio 授权令牌 |
| `fromNumber` | 字符串 | 是 | 用于发送消息的 Twilio 电话号码 |
#### 输出
| 参数 | 类型 | 描述 |
| --------- | ---- | ----------- |
| `success` | 布尔值 | 短信发送成功状态 |
| `messageId` | 字符串 | 唯一的 Twilio 消息标识符SID |
| `status` | 字符串 | 来自 Twilio 的消息传递状态 |
| `fromNumber` | 字符串 | 发送消息的电话号码 |
| `toNumber` | 字符串 | 接收消息的电话号码 |
## 注意事项
- 类别:`tools`
- 类型:`twilio_sms`