Programming a Bot with Facebook Messenger
Kevin Scott

Nice tutorial on setting up a basic chatbot.

The header has to be modified a little like this:

headers: {
 ‘Authorization’: ‘Bearer <token name>’

The missing “:” gave an error while using nodemon

The only addition is I needed to train the bot in dashboard to understand that intent of user was question and entity was a wit/location when user asked question of “what is the weather in place_name”. Kindly add the same part in the tutorial to train the bot if required.

Other than that I ran into an issue where I am able to get responses from the bot when I send messages from the same account I used to create the page however when I send message from another account there is no request sent to node server or ngrok. Kindly revert back if you know how to resolve the issue.