Connect Twilio for SMS and voice

Connect a Twilio account to Askocto so your agent can answer text messages and calls on a Twilio phone number, then test both.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

The Twilio integration gives your agent a phone number. Customers can text it, and, if you turn on voice, call it. Use it when you want an SMS channel, or phone numbers for the voice agent without running your own carrier.

Before you start

  • A Twilio account with a phone number that can send and receive the type of traffic you want.
  • Your Account SID and Auth token from your Twilio account.
  • Workspace Owner or Admin role in Askocto.

If you already have numbers with a carrier, use a SIP trunk instead.

Connect Twilio

  1. Open Workspace Settings > Integrations.
  2. Find Twilio and select Connect.
  3. Enter the Account SID and Auth token.
  4. Select Connect.

You should see Twilio marked Connected and your numbers listed.

Note: The auth token is stored encrypted and never shown again. Rotate it in your Twilio account if you think it was shared, then connect again.

Turn on SMS

  1. Open the agent and select Channels.
  2. Choose SMS and select Set up.
  3. Choose the Phone number.
  4. Copy the Webhook URL and set it as the incoming message webhook for that number in your Twilio account.
  5. Write the Opening reply if you want one, then select Save.

You should see the channel marked Connected.

Turn on voice

  1. Open Channels > Voice and select Phone numbers.
  2. Choose a Twilio number and assign it to the agent.
  3. Copy the Voice webhook URL into the number's voice settings in your Twilio account.

Voice behavior, greetings and call transfers are covered in Voice.

Test it

  1. Send a text message to the number and read the reply.
  2. Call the number and ask a question aloud.
  3. Open Activity and filter by Channel to see both conversations.

Keep texts short. Customers read replies on a phone, so ask for brief answers in Build > Behavior.

Disconnect

Release the webhook URLs in your Twilio account, then choose Disconnect in Workspace Settings > Integrations. The agent stops replying on those numbers.

Troubleshooting

  • No reply to a text. Check that the webhook URL is saved on the number and the channel is on.
  • The call rings and drops. Check the voice webhook URL and that the number is assigned to the agent.
  • Replies are cut into several messages. Ask for shorter answers in the agent's behavior settings.

Something unclear or missing? Tell us and we will fix the page.