Giter Site home page Giter Site logo

dialoganalytics / twilio-sms-ruby-example Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 8 KB

An example Twilio SMS Ruby chatbot integrated with Dialog Analytics

License: MIT License

Ruby 100.00%
twilio dialog bot chat conversational-ui sms twilio-ruby

twilio-sms-ruby-example's Introduction

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 https://app.dialoganalytics.com, grab your Dialog API token and bot ID.

Set environment variables in .env:

DIALOG_API_TOKEN=...
DIALOG_BOT_ID=...

Get your Twilio Account SID and Auth Token from http://www.twilio.com/console

Get a Twilio phone number from http://www.twilio.com/console/phone-numbers, 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 https://f562681e.ngrok.io/sms.

Local development: When developping locally, use a service like https://ngrok.com 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: https://dialoganalytics.com

twilio-sms-ruby-example's People

Contributors

phildionne avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.