Twilio

Stable

Send SMS, trigger voice calls, verify OTPs, and bridge phone numbers with an AI agent on WhatsApp

Communication

What is Twilio?

Twilio is the leading communications platform, powering SMS, voice, video, email, and verification APIs for more than 300,000 customers. The LunoGen Twilio integration connects your AI agent to Twilio Programmable SMS, Programmable Voice, and Twilio Verify so it can send SMS, initiate voice calls with TwiML, run OTP verification flows, and handle two-way SMS conversations — all from WhatsApp.

Why connect Twilio?

SMS still beats every other channel for delivery and read rates, and voice calls still beat everything for urgency. But the Twilio Console and writing TwiML by hand is overkill for simple daily work. The AI agent turns Twilio into a one-line command: 'text the on-call engineer right now', 'call the customer if the payment fails', 'start an OTP flow for a new signup'. You get Twilio's reliability with WhatsApp's speed.

What you can do

  • Send SMS from chat to any phone number or SMS group
  • Voice call automation with dynamic TwiML generation and text-to-speech
  • Twilio Verify for OTP and 2FA flows across SMS, voice, and email
  • Two-way SMS conversations bridged into WhatsApp threads
  • SMS-to-WhatsApp and WhatsApp-to-SMS message relaying
  • Daily Twilio messaging and voice cost report with per-number breakdown
  • Phone number lookup (carrier, line type, validity)
  • Bulk SMS campaigns with rate limiting and delivery tracking
  • Voice IVR menus built from plain-language descriptions
  • Emergency call cascade when on-call doesn't acknowledge a WhatsApp alert

Setup

Requirements

  • A Twilio account with at least one purchased phone number
  • Twilio Account SID and Auth Token from the console
  • A LunoGen account with at least the Pro plan
  1. 1

    Find your Twilio credentials

    Log in to console.twilio.com and copy your Account SID and Auth Token from the dashboard. These authenticate every API call.

  2. 2

    Purchase or pick a sender number

    Buy a Twilio number (SMS + Voice capable) in the console, or pick an existing one. For US 10DLC or toll-free, complete the brand and campaign registration.

  3. 3

    Connect in LunoGen

    Open LunoGen → Credentials → New → Twilio. Paste the Account SID, Auth Token, and your default sender number. The agent will run a test message.

  4. 4

    Configure Messaging and Voice webhooks

    For incoming SMS and voice replies, set the phone number's Messaging and Voice webhooks to your LunoGen endpoint. This is how the agent reads replies.

  5. 5

    Enable Twilio Verify (optional)

    If you plan to use OTP flows, create a Verify Service in the console and paste the Service SID in LunoGen. You can now trigger /verify from chat.

Twilio use cases

6 total

Related integrations

Ready to connect Twilio?

Spin up an AI agent in under 2 minutes, plug in your Twilio credentials, and start running your workflows from WhatsApp.