0.0.12 • Published 6 years ago
considerjs v0.0.12
Consider.js
A mini-framework for building out non-trivial response architecture of conversation apps on Dialogflow leveraging Firebase
Installation:
npm install localtunnel -g
npm install considerjs -g
Create a Project:
- Navigate to the project root.
considerjs init
- input project id. Find the project id by navigating to https://console.actions.google.com then selecting the gear icon to the right of the project name on the top left, then selecting 'Project Settings'
- input unique project slug for locally hosting firebase during dev
- specify Developer access token. Find the access token by navigating to https://console.dialogflow.com then selecting the gear icon to the right of the project name on the top left.
considerjs sync
downloads existing intents, entities and actions, then scaffolds the actions for you.
Serve the Project
cd functions
npm run serve
- open a new Terminal window in the same folder
npm run localtunnel
- set Fulfillment URL to correct locally served firebase functions.
- ensure that the intents you want served from the webhook have their fulfillment property set correctly.