![]() ![]() You need a Facebook Page to set up your chat bot. This URL will be used as a Messenger webhook endpoint during the development, so you don’t need to deploy to a server until the app is completed.ĭownload ngrok, install it on your machine, and run with a port number, let’s use 5000: ![]() I choose ngrok to serves a localhost to a public URL because it is simple and easy to use. Setting Up a Temporary Webhook Endpoint with ngrok Live Demo - Scan the code below (the one looks sort of like a QR code) from the Messenger App on mobile, or access on m.me/tomomiBot from browser.īefore configuring your Messenger app on Facebook Developer, let’s create a bare minimum webhook with Node.js to get started. *(Updated on Jan 9: The bot has been approved by Facebook so you can try the bot!) * The source code (on tutorial-01 branch) is on GitHub. My step-by-step instruction uses Node.js, so if you’d like to follow the how-to, make sure Node.js is installed on your machine. Using API.ai Small Talk domain and creating a custom Intents.Setting up a Facebook Messenger App and writing the webhook.Writing apps with the services aren’t hard, however it requires some time reading the docs to figure out how to set them up, so I would like to share my experiences as this tutorial so hopefully you can write your bot in less time. Previously, I created a HTTP Status Cats bot for Slack (and its tutorial on Medium), and this time I tried with Facebook Messenger with some interesting 3rd party APIs, and I decide to give API.ai a try.Īs you may have heard of, API.ai, which recently acquired by Google, provides a conversational platform for natural language processing and it allows us to create bots easily. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |