Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

[SOLVED] Dialogflow Fulfillment is sending GET instead of POST requests

[SOLVED]

After hours scratching my head, I found that a fricking trailing slash was the problem.

On the console, I changed the webhook URL from "https://example/api/"  to  "https://example/api" and it started working properly. Apparently that trailing slash made the request get redirected and converted to a GET or whatever.

[ORIGINAL QUESTION]

Hello! I'm trying to use fulfillments to create custom responses for my chatbot using dialogflow. I deployed a NextJS webhook server that meets all the requirements listed in the doc.

However, after enabling fulfillment in some intents for testing, I keep getting GET requests with empty bodies instead of POST (like it should be sending). I have not found any solution, nor any other person facing this problem. Any idea what could be causing this?

0 0 66
0 REPLIES 0