koa-aog
Koa middleware to handle Google Assistant action requests.
Supports execution of Actions On Google DialogFlow and ActionsSdk fulfillment.
Installation
Install the koa-aog package from NPM:
npm install --save koa-aog
Usage
To use the middleware, add it to a Koa server as follows:
const Koa = ;const KoaBody = ;const KoaActionsOnGoogle = ;let action = ; //The Google action implementation const app = ; app; app; app;
The action
must be an instance of an Actions On Google fulfillment. For example, a simple action.js
may look like:
const dialogflow = ; const app = ; app;