Building Chatbots with Python by Sumit Raj

Building Chatbots with Python by Sumit Raj

Author:Sumit Raj
Language: eng
Format: epub
ISBN: 9781484240960
Publisher: Apress


Page Access Token: enter the token generated in the Facebook Developer Console

2.Click the Start button.

Figure 3-17 Setting up and integrating Dialogflow with Facebook Messenger

You should get a message saying, “Bot was started.” That means we are good to go.

You must be wondering what a callback URL, Verify Token, and Page Access Token are. Let’s try to understand those.

Callback URLs

A callback URL is nothing but a publicly accessible URL where Facebook will POST any real-time requests coming from your Facebook page.

Suppose you are trying to make payment for your food on OnlineEats and then you are redirected to a bank’s payment page. Now, OnlineEats must be giving a callback URL to banks to which they can redirect the user after payment is done.

Here Facebook will not do any redirection but will take everything that our user messages in the page’s chatbox and POST that to the webhook or callback URL.

Now, once we get the message on our server we do our intent classification and entities parsing and then formulate what you want to reply back to the user.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.