Think you can do better than Google Assistant, Alexa, or Siri? Want to build your own intelligent Facebook Messenger bot? Dipping your toe in the water is easier than you think, thanks to tools like API.ai and Google’s Cloud Speech API. We’ll start by building a chatbot that can keep track of context from message to message. Then, we’ll mix in speech input and output to get something a little closer to your favorite assistant app.
Please visit the following link & follow the instructions:
https://gist.github.com/iansltx/ea476854dfb350b8190f6b2a29ee9efd