codeforequity-at / botium-connector-dialogflow

Botium Connector for Google Dialogflow
https://www.botium.at
MIT License
13 stars 12 forks source link

Connector does not work when using AoG conversations. #1

Open syedatifakhtar opened 6 years ago

syedatifakhtar commented 6 years ago

Hi, Im using AoG to store conversations in my fulfillment

https://github.com/dialogflow/dialogflow-fulfillment-nodejs/tree/master/samples/actions-on-google

Some of the sample code here for example - the current implementation of the dialogflow connector does not support the conv() object which is key to all AoG requests - This is used for suggestion chips/displaying carousels/user storage in our fulfillment code.

A call from Botium however does not have this object and breaks our fufillment code with the below error:

TypeError: Cannot read property 'user' of null at exports.dialogflowFirebaseFulfillment.functions.https.onRequest

And i receive the following error from Dialogflow

webhookStatus: botium-connector-dialogflow { details: [], botium-connector-dialogflow code: 13, botium-connector-dialogflow message: 'Webhook call failed. Error: 500 Internal Server Error' } } +658ms

Is this going to be supported any time soon?

codeforequity-at commented 6 years ago

Hi, the issues section in this project is not monitored, please use the main project for questions in future.

I have very little know-how about AoG. Botium makes a series of "DetectIntent-Requests". From the documentation I cannot see any special attributes for AoG. This thread seems to be related to your problem.