Dialogflow-fulfillment-nodejs: Error: Request can NOT be empty.

Created on 23 Oct 2018  路  3Comments  路  Source: dialogflow/dialogflow-fulfillment-nodejs

I am playing with dialogflow to make a bot able to integrate to our platform,
so I added a fulfillment webhook, which goes to our nodejs / express server
I've added headers to webhook request, and I do see those headers arrive to the server, I've added parameters to the intent itself but I still get this error when I am trying to instantiate the object

const agent = new WebhookClient({ req, res });

Error: Request can NOT be empty.
application.js:630
at new WebhookClient (/Users/.../Projects/../../node_modules/dialogflow-fulfillment/src/dialogflow-fulfillment.js:59:14)
any ideas?
Thanks

All 3 comments

@KirillMoizik Please feel free to view the Dialogflow-Fulfillment samples to get a better sense of requests and responses.

For future reference, Github issues is for reporting issues with the Dialogflow-Fulfillment Node.js client library. For general questions, I suggest Stack Overflow or the Dialogflow Help Forum.

Are you still having this problem @KirillMoizik ?

Was this page helpful?
0 / 5 - 0 ratings