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

Dialogflow CX ignores boolean values in WH responses

No sure why, but our webhook responses in dialogflow CX is not reading any boolean values. We know it is not our API since we have another system that is able to read the information. Is there anyone who knows why or how this can be fixed?

Cheers,

0 4 380
4 REPLIES 4

Hi!
Can you share a response and also an example of how you are managing that
boolean in Dialgoflow?

Thanks!
Xavi

Hi,

Below is the response body. 

{
"is_authenticated": true
}

Even if I set the field to $ or $.is_authenticated, it doesn't save the parameter as true or false. Rather it would just save a {}.

Cheers,

My suggestion would be to treat them as a string: "true" instead of a boolean or as a number 0 or 1

+1
I am also facing this issue. I have created a webhook, which calls API returning JSON response with single boolean field. Webhook request is successful, but I am not able to see the assigned parameter