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 to list
  • Emit sms_sent mark or sms_send_failed warn 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 connection
  • push(env, payload)SendReceipt — dispatches sends to all recipients
  • verifyWebhook(sig, body, secret) → boolean — validates Twilio webhook signatures