后端与数据库

twilio-send-message

twilio/ai

Send messages via Twilio's Programmable Messaging API across all channels — SMS, MMS, RCS, and WhatsApp. Covers text messages, media, rich content (cards, carousels, buttons), template-based sends, Messaging Services, status callbacks, and WhatsApp's 24-hour service window. Use when the user wants to send a message — whether they say "send SMS", "text message", "branded message", "rich message", "WhatsApp message", "RCS message", "notification", or "alert". For picking the right channel for a use case, first consult twilio-messaging-channel-advisor.

  • 781 次安装
  • 38 星标
  • 收录于

安装命令

npx skills add https://github.com/twilio/ai --skill twilio-send-message

SKILL.md

Overview

A single messages.create() call sends on any messaging channel — SMS, MMS, RCS, or WhatsApp. The channel is determined by the sender address and the recipient's capabilities. For channel selection guidance and the full onboarding sequence, see twilio-messaging-overview and twilio-messaging-channel-advisor.

Channel to format Notes Template required?
SMS/MMS +15551234567 MMS: US/CA/AU only No
RCS (with SMS fallback) +15551234567 Send via Messaging Service that has both an RCS sender and an SMS sender — Twilio attempts RCS first, falls back to SMS on failure No
RCS (no fallback) rcs:+15551234567 Forces RCS only — fails if recipient isn't RCS-capable No
WhatsApp whatsapp:+15551234567 Send via whatsapp:-prefixed from Outside 24-hr window: yes

For production: Send via messagingServiceSid instead of from. This enables sender pool management, RCS→SMS fallback, SMS pumping protection, link shortening, compliance toolkit, and scheduling. See twilio-messaging-services.


Prerequisites