GithubHelp home page GithubHelp logo

bot-hackathon's Introduction

AlMakinah bot hackathon

Installation

Part 1: Cloning and Deploying your Bot

  • Clone this repo git clone https://github.com/AlMakinah/bot-hackathon.git
  • Make sure you have nodejs and npm installed
  • cd into your directory and npm install
  • If you don't have account already, signup on heroku
  • Download the heroku toolbelt
  • Create an app on heroku
  • Go to the deploy tab under your heroku app and get your deploy link git remote add heroku <YOUR-DEPLOY-LINK-HERE>
  • Push your code to heroku git push heroku master
  • Go to your app URL in the browser, you should see Hello world, I am a chat bot'

Part 2: Connecting your Bot with Facebook

  • Create a Facebook page if you don't have one already
  • Sign up https://developers.facebook.com/products/messenger
  • Creating Facebook App for Messenger
  • Go to My Apps
  • Click on "Add a New App"
  • Add a "Display Name", "Contact Email" and choose a category for your app
  • Add a "Messenger" App
  • Under "Token Generator" select your page and generate a token.
  • Add the newly generated token in your code and push updates to heroku
  • Setup a webhook, add your heroku app URL under "Callback URL" and your generated token under "Verify Token"
  • if webhook is successful then you have connected your bot to Facebook!

Part 3: Test it

  • Go to your Bot's corresponding Facebook page and send your Bot a Message
  • Sending anything will have it echo it back to you
  • Sending "hi" will show you a catalog of interactive links with predefined answers

Resources

bot-hackathon's People

Contributors

karimalaa avatar

Stargazers

Andrew Nguyen avatar

Watchers

James Cloos 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.