Jo Colina
Jo Colina

Reputation: 1924

Dialogflow + Actions on Google webhook request not being sent

I'm having a little (big) problem using webhook on Dialogflow (API.AI) and Actions on Google.

I have enabled webhooks on Dialogflow, and I'm getting the requests when trying my intents on their console (on the right of the page). I have also completed actions on google integration (setting the welcome intent + auto propagating changes).

However whenever I try my app on a Google Assistant app (phone/google home/their simulator) I'm not getting any request to my server (not even a 404 one), but their debugger shows this error:

status": {
      "code": 206,
      "errorType": "partial_content",
      "errorDetails": "Webhook call failed. Error: 404 Not Found"
    },

Has anyone had the same problem, or knows a fix for this ? I know it's not on my end since dialogflow requests are arriving and being correctly responded to.

Upvotes: 1

Views: 5639

Answers (5)

layman_brother
layman_brother

Reputation: 63

You might have given link in fulfillment tab for the webhook url starting with http. Dialogflow's internal architecture rejects links which starts with http. Please make it https and it will work. It worked for me.

Upvotes: 0

Ravi Jetani
Ravi Jetani

Reputation: 21

Please make sure the following points :

(1) you have to fill all parameters under Directory Information (you can find this information at Left pane of actionOnGoogle).

(2) your Webhook URL must be a valid HTTPS URL.

(3) please make sure your server is listening for post request as dialogFlow or actionOnGoogle will send POST request on given fulfillment URL.

Directory Information on actionOnGoogle

Upvotes: 0

Ehsan
Ehsan

Reputation: 1022

I was facing the same issue where the Fulfillment didn't get saved even though a successful message is shown. In my case, I only kept only one Dialogflow tabs (closed the rest) and after clicking on Save a few times, I refreshed the page and made sure the webhook was still enabled. Then tested the app on Simulator and got a post request to my server!

Upvotes: 0

JiN
JiN

Reputation: 149

Jo's answer gave me some hint that solved my problem.

In my case, webhook doesn't work after I turned it on for my agent, so I switched to another agent in the DialogFlow console(top left corner), then switch back to my working agent, click Fulfillment and found it mysteriously got disabled!

So what I did was re-enabled and re-entered the webhook link then click save. After that it worked.

Hope this helps.

Upvotes: 2

Jo Colina
Jo Colina

Reputation: 1924

Okay, I'm not marking this as resolved because I believe there are many "bugs" on the implementation between Dialogflow and Actions on Google.

Take note that this works IF you are getting webhook requests from Dialogflow console (on the right of the page) but NOT from actions on google simulator.

1) Try changing the name of the app on the "Info" section of Actions on Google and sending messages from Google assistant asking Talk to <new_app_name>

2) Try opening another project from Actions on Google dropdown (up right) and opening the first one after (It causes some reloading on the back I guess)

3) Try both

These have been working for me

Upvotes: 1

Related Questions