How to create Webhooks for Dialogflow (Api.ai)




Tutorials on how to create webhooks for Dialogflow. The link to index.php is here: …

Original source


29 responses to “How to create Webhooks for Dialogflow (Api.ai)”

  1. Great video.Thank you. I have a couple of questions. First, is there a many to one relationship between intents and web hooks? It seems like you can only create one web hook or am I missing something and can you create a web hook for each and every intent. If you can only create one web hook then I presume that the web hook will have to interpret the JSON intent name parameter and act accordingly. Obviously that's achievable but I can see how that could get quite complicated. Finally regarding user paramaters do you know if dialogflow can retrieve user parameters in a smart way or is the only way to do it by asking the user for their name / credentials? I'm think of a use case where you want to use a web hook but on a per user basis thus the web hook would need to receive some user credentials in order to pass back user specific data.

  2. what do i do about the, default welcome and fallback intents?
    The 'hi' or 'bye' which i give to the console, returns a default value from the dialogflow default responses and not from the webhook.
    i followed all the steps exactly.
    Also, i am facing issues with the v2 of the dialogflow, please help me out. (it says 'speech' is a wrong way of going through and also asks for responses as arrays)
    Thank you so much ๐Ÿ™‚

  3. Hi Anshul ( I liked ur chatbot series a lot and thanks for help) (I have the below problem in my chatbot)
    When the user enters his 6 digit ID number the bot has to match the 6 digit id number with the first name of the user from the sql server and prompt his first name by greeting him. kindly help me in this step.

  4. Hi, i copied the php code from your link whenever i am testing the code i am getting the following error can you please help me to fix this issue.
    "Failed to parse Dialogflow response into AppResponse because of empty speech response"

Leave a Reply