how to send followup event from webhook using action-on-google lib
See original GitHub issueby followupEvent i’m refering to this: https://api.ai/docs/fulfillment#response https://api.ai/docs/events#invoking_event_from_webhook
I have read rest of the https://dialogflow.com/ document more then twice(since it is updating frequently) and I know well how to send followup events with simple webhook (with simple rest service webhook without action-on-google), here is my repo with the sample of it (see commented code from line 35 to 54) https://github.com/malikasinger1/quizbot-reactjs-api.ai-firebase-function/blob/master/functions/src/lib/apiai-functions.ts
but my question is how to send it with action-on-google nodejs library (https://www.npmjs.com/package/actions-on-google) since we handover the request object to action-on-google and it gives us an object app
, we have methods in the object like app.ask()
app.tell()
, app.setContext()
so i was expecting for some method like:
app.followupEvent("<event_name>",{
"<parameter_name>":"<parameter_value>>"
})
app.ask();
OR
app.askWithFollowupEvent({...
})
so what you say about this? if you don’t have these method you should add one, and please let me know some place where you guise discuss future plannings
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:25 (1 by maintainers)
Top GitHub Comments
At the moment I do the following:
It’s dirty, but it works and while waiting for approval and eventual publish I think is better than nothing
@malikasinger1
I could not find anything in the documentation. I found a function in v2 code
conv.js