innFactory / react-native-dialogflow

A React-Native Bridge for the Google Dialogflow (API.AI) SDK
https://innfactory.de/softwareentwicklung/ui-ux/sprachsteuerung-mit-api-ai-in-einer-react-native-app/
MIT License
199 stars 63 forks source link

Having problem getting response result #48

Open iamdreo opened 6 years ago

iamdreo commented 6 years ago

Please how do I get response result? Tried result.fulfillment.speech but it doesn't work or says in handled promise rejection. Thanks a lot

slattouf95 commented 5 years ago

Hey Iamdreo, did you manage to fix it?

eggybot commented 5 years ago

it looks like Dialogflow return JSON structure data has been changed. I'm not sure if the changes affect the V1 users, but for V2 you can try queryResult.fulfillmentText

iamdreo commented 5 years ago

was using dialogflow v1, so sorry just looked at the json data probably, was using result.fulfillment.text to retrieve values i wanted instead of result.result.fulfillment.text on this