Global Digital Library's Google assistant service
- node version should be 10 or above (to check
node -v) or use nvm. - serverless should be installed globally (
npm install -g serverless)
cd assistant-service/npm install
The application uses some serverless plugins which may affect the use of additional plugins (so you are aware). Current plugins used are:
To run the assistant locally on localhost:3000, use the command:
npm run dev
Test are run by using the command:
npm run test
To be able to test the API on an assistant like Google Home, Google home mini or an assistant on your phone you first need to create a project on Google actions. Then you can integrate with Dialogflow where you set up the following:
- A
fulfilment(webhook url) which must be ahttps-address (you can use ngrok) - A list of
intents(should correlate with the ones defined inapp.js) - A set of
entities(we usereadandtopic)
In the folder config/intents and config/entities lies the configuration setup for intents and entities in the project which can be uploaded on Dialogflow.