0
votes

I deployed my function at firebase and tried to call webhook in dialogflow but this results

Webhook call failed. Error: Failed to parse webhook JSON response: Cannot find field: speech in message google.cloud.dialogflow.v2.WebhookResponse

This is the Screenshot of code enter image description here

here is the url

https://us-central1-fir-functions2-2c9a5.cloudfunctions.net/webhook suggestions to resolve this issue ?

3
Generally, cutting and pasting in code samples and error messages, rather than including a screenshot, will make it more likely that you'll get a helpful answer. - techpeace

3 Answers

1
votes

You are supposed to write fulfillmentText instead of speech, since you are using dialogflow v2 Have a look of dialogflow v2 request and response here: https://dialogflow.com/docs/fulfillment/how-it-works

0
votes

I'm using V2 api of dialogflow as I change it to V1 api it works