##This is a Python code that uses Flask to build a webhook for Facebook's Messenger Auto reply Bot API.
Make an account on https://developers.facebook.com/
Create a new messenger app and generate token for the same
Download and extract ngrok
Run and type ngrok.exe http port 80
You will get a https link; Copy the link: this link is your call back URL.
Setup webhook for the messenger application and select the page you want the bot to work on
Open terminal
Import Flask, os, pymessenger
Make a app on Wit.ai and train you Bot for some keywords there.
Install heruko and Git CLI
1. Type "heruko create" to create an app with random name
2. Type "heroku git:rempte -a (app name)" to create reprository
3. Deploy on Heroku to get new call back URL
Change your call back URL in webhook section and save settings.
Enter the code and Run! :)