I want to set up my fullfilment in AWS Lambda for my Google Assistant.
I am using the actions-on-google
npm package.
To create an ApiAiApp({req,res}
I need an http request and response objects.
However, the lambda callback provides a different set of parameters:
exports.handler = function(event, context, callback) {
const apiAiApp = new ApiAiApp({req:<REQUEST>, res:<RESPONSE>});
}
How do I translate event, context, callback
to the <REQUEST>
and <RESPONSE>
?
(I don't believe I need the context here)