Code Monkey home page Code Monkey logo

stealth-twilio's Introduction

Setup

This setup assumes you have redis and ngrok installed. To boot this bot locally, use the following CLI commands:

  1. bundle install
  2. redis-server
  3. ngrok http 5000
  4. bundle exec stealth s

This runs a Redis server, the Stealth server and an ngrok tunnel to your system, allowing you to use web hooks (Twilio or otherwise) to trigger chatbot flows. The chatbot is currently set up to use Twilio, you can add a .env file to your app root folder, with the following structure:

export TWILIO_ACCOUNT_SID=[Add info here]
export TWILIO_AUTH_TOKEN=[Add info here]

Conversations

You can start a conversation by texting the number you have set up in Twilio. To do this,

  1. Start a new project with Programmable SMS
  2. Add a new number using your Trial credit
  3. Add this number to your services.yml file
  4. Set up the ngrok tunnel forwarding path (e.g. https://1e6e7b84c8a8.ngrok.io) to your Twilio messaging service's setting page. It should look like this:

  1. Once that's all set up, you can send a text to your Twilio number to initiate a conversation with Botnik.
  2. Texting restart resets the session, as it otherwise remembers where you left off if you're texting from the same number

Testing the Bot

TBC

Stealth Chatbot Framework

For more information, please check out the Stealth documentation.

stealth-twilio's People

Contributors

rahulkeerthi avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

francelwebdev

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.