Anshul Shrivastava

Results 4 comments of Anshul Shrivastava

Hi Ridhima, it could be a timeout issue. Dialogflow has a strict timeout of 5 seconds. So if your API takes more than 5 seconds to respond, Dialogflow will just...

You can write the database query code inside a promise and when the promise resolves, you can trigger an event in Dialogflow using agent.setFollowupEvent() function.

Try changing conv.ask() to agent.add() Also make sure to add a "return" before axios.post() For events, please have a look at this link: https://cloud.google.com/dialogflow/docs/events-overview#config

Please check the default code in Inline Editor. const {WebhookClient} = require('dialogflow-fulfillment'); const agent = new WebhookClient({ request, response }); agent.add(`Welcome to my agent!`); return before axios.post() ? This return...