An example Facebook Messenger 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.

Facebook Messenger Ruby Chatbot

An example Facebook Messenger Ruby chatbot integrated with Dialog Analytics. Built with hyperoslo/facebook-messenger.

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 Facebook Messenger tokens at Configure your application's webhook settings in the Facebook developer dashboard to the endpoint on which this server will be listening.

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

$ ngrok http 4567

Start the bot:

$ bundle exec rackup -p 4567

Open the Messenger application, find your bot and exchange a few messages. 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: