Back to Blog

Creating an SMS chatbot using Twilio

SMS can be a great channel for creating more engagement with your customers because your users aren’t depending on an internet connection. Reach out to your users on all mobile devices. Some common use cases for SMS bots are sending notifications to your users, for example about having received an order, or a message with information about the delivery time of a package.

Setting up a chatbot for SMS is very easy to do with Flow.ai and the Twilio integration. In this tutorial, we will show you step-by-step how to do this.

  1. Login to Twilio. Create a new account if you don’t have one yet.
  2. Go to Phone Numbers and select the number you would like to use for your SMS bot. You can also buy a new number here. If you do that, make sure it is compatible with SMS.
Twilio number capabilities
  1. Copy the phone number and go back to the project you made in Flow.ai
  2. Go to integrations and add the Twilio SMS integration.
Flow.ai Twilio SMS Integration
  1. Paste the phone number and make sure to remove all spaces.
Twilio SMS Integration settings within Flow.ai
  1. Go back to Twilio, go to your organization settings (by clicking on the gear icon in the top right corner), and copy & paste also your Account SID and Auth Token into Flow.ai.
  2. After pasting all the information, click Save in the Twilio SMS integration. That will update your Twilio Web Hook.
  3. Go back to the Twilio number you bought, scroll all the way down to Messaging, and paste the Twilio Web Hook next to “A Message Comes In”.
  4. Save it and you are done. Test your SMS bot by sending a text message to the number you used.

You can also use the Twilio integration for IVR. For more information about IVR bots, read our other tutorial.

Get StartedContact us