An example Twilio SMS Ruby chatbot integrated with Dialog Analytics
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Twilio SMS Ruby Chatbot

An example Twilio SMS Ruby chatbot integrated with Dialog Analytics. Built with twilio/twilio-ruby.

Getting started

Clone this repository and run bundle install

Create an account on, grab your Dialog API token and bot ID.

Set environment variables in .env:


Get your Twilio Account SID and Auth Token from

Get a Twilio phone number from, create a Programmable SMS service and set the inbound settings request url to the endpoint on which this server will be listening: this should be something like

Local development: When developping locally, use a service like to expose a server running on your machine.

$ ngrok http 4567

Start the bot:

$ ruby bot.rb

Send a SMS to the phone number you defined previously. Messages will be sent to Dialog's API.

Go further

Read more on how to make the most out of the possibilities offered by Dialog here: