SMS Campaign Sender
campaign-sms
Sends bulk campaign SMS messages through a workspace's connected Twilio account via Composio.
Responsibilities
- Validate that the workspace has an active Composio connection for Twilio
- Dispatch SMS sends to each recipient in the
tolist - Emit
sms_sentmark orsms_send_failedwarn on the campaign path - Report aggregate
cost_msat(5 msat per message) for spend tracking
Inputs
| Field | Type | Notes |
|---|---|---|
campaignId |
string | Tags the campaign path |
to |
string[] | Recipient phone numbers (E.164; consent checked by caller) |
body |
string | Message text (≤160 chars for single SMS) |
from |
string? | Sender number (falls back to Twilio default) |
connectedAccountId |
string | Composio connected-account ID |
Contract
auth(env, slug)— probes for an ACTIVE Twilio Composio connectionpush(env, payload)→SendReceipt— dispatches sends to all recipientsverifyWebhook(sig, body, secret)→ boolean — validates Twilio webhook signatures