Now send me an image!
You have to go through a review process before your bot is open to the world, ready to chat with anyone. You can skip through most of the setup steps. Testers were more willing to disclose personal information to an artificially intelligent virtual therapist than they were to a living breathing clinician.
If you did not already do so when you set up your Facebook appgenerate a page access token, by doing the following: In the 'Token Generation' section of your app's Messenger settings, select the Facebook Page you want to generate a token for from the 'Page' dropdown.
In a real-world bot we would iterate the array to check for multiple attachments, but for the purpose of this quick start, we will just get the first attachment.
Test your Chatfuel chatbot in Facebook Messenger.
To grant these roles to other Facebook accounts, go to the 'Roles' tab of your app settings. Then we loop over each of the messaging events. Have you encountered a particularly memorable chatbot?
There are really only two key parts to a messaging bot: receiving and sending messages Receiving Messages We handle incoming messages starting on line 24 inside app.