How to investigate a failed request

Start with looking at its logs (test, prod). If you’re testing recently, the failure and error trace should be among the most recent logs. The logs will also include the input request.

How to debug a request

Alternatively, you can gIf you want to debug a request in the code, you first need to grab the original request json.

You can go to Dialogflow History and use Raw Interaction Log

Untitled

In the window that opens, copy the full text and wrap it in a top level key as “queryResult”. However, there are known differences using this way with int handling (eg passed as string here rather than an int). May be best to use the Dialogflow tester.

FAQ

I’m sending messages through Messenger, Dialogflow is getting them, but not nothing is coming back to Messenger.

Reset the connection by re-configuring the tokens -

  1. In Facebook app settings
    1. Re-nter the callback url and verify token
    2. Re-generate the token
  2. In Dialogflow
    1. Go to Integration settings
    2. Stop the bot
    3. Paste the url and tokens from #1