dialogflow / dialogflow-fulfillment-nodejs

Dialogflow agent fulfillment library supporting v1&v2, 8 platforms, and text, card, image, suggestion, custom responses
Apache License 2.0
597 stars 281 forks source link

Dialog-flow-fulment agent inconsistency in sending Texts back to client #296

Closed lovelovelovelovelovelovelove closed 4 years ago

lovelovelovelovelovelovelove commented 4 years ago

Been using the library for over 2 weeks, and it was working perfectly until today. It sometimes sends a response to messenger bot, sometimes it doesn't. I can not find the difference between the 2. From the console, all the data its supposed to return, shows its coming back properly from CloudFirestore but sometimes, for some reason, the agent.add(new Text("")) is not invocked

Using firebase functions as webhook

Any help will be greatly appreciated

lovelovelovelovelovelovelove commented 4 years ago

It appears its Dialogflow's 5 sec timeout, vs Firebase Functions cold start, trying to find ways around this by adding follow up intents