Chris Pollett > Students > Nukala

    Print View



    [CS297 Project Proposal]





    [CS 297 Report_PDF]

    [CS 298 Project Proposal]

    [CS 298 Report_PDF]

    [CS 298 Presentation_PDF]

Facebook Messenger Bot

Description: A chatbot is a service, powered by rules and sometimes artificial intelligence, that you interact with via a chat interface. To understand more on chatbot service, I have implemented a Facebook Messenger Weather Bot.


  • Weather bot-Get weather whenever you ask.
  • Booking flight bot-Get flight information
  • News bot-Ask it to tell you when ever something interesting happens.

Facebook opened up their Messenger platform to enable bots to converse with users through Facebook Apps and on Facebook Pages. The following is a weather bot implementation using NodeJs on messenger.

Start with

  • a bot setup (
  • a Messenger Platform setup (

Steps to run app:

  1. npm install body-parser express request
  2. Download and install ngrok from
  3. ./ngrok http 8445
  4. WIT_TOKEN=your_access_token FB_APP_SECRET=your_app_secret FB_PAGE_TOKEN=your_page_token
  5. run node messenger.js
  6. Subscribe your page to the Webhooks using verify_token and 'https://your_ngrok_io/webhook' as callback URL.
  7. Talk to your bot on Messenger!

Try it yourself! Download messenger.js

Facebook Messenger Bot Output