Git Product home page Git Product logo

chatbot's Introduction

Chatbot

A Chatbot for Facebook Page.

Before running the code

  1. Create a Facebook Page.

  2. Get the access token and verify token from the Facebook page.

  3. On the Webhooks panel, subscribe to the messages.

  4. On the Messenger panel, under the Settings, fill in the Callback URL and Verify token. For example:

To run the code

On one terminal

$ ssh -R weesan:80:localhost:5000 serveo.net

On another terminal

$ export ACCESS_TOKEN="..."
$ export VERIFY_TOKEN="TOKEN"
$ ./chatbot

To try the chatbot

  1. Go the Facebook page or use the Facebook Messenger.
  2. Search for the Facebook page.
  3. Start chatting with the chatbot.

For example:

Me:  Hi
Bot: Greetings!  Welcome to ELSA!
Bot: To search for a product, please type its name!
Me:  red nike tennis shoes

Bot: Which store?
Me:  Nike

Bot: What category?
Me:  Shoes

Bot: Which store?
Me:  Nike

Bot: <show a list of matched shoes from Nike store>

chatbot's People

Contributors

weesan avatar

Watchers

 avatar  avatar

Forkers

tbdnoticer

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.