Boilerplate and example code for using the Kiai VoiceAction Framework. See Kiai VoiceAction Framework.
- Go to https://myaccount.google.com/activitycontrols
- Enable Web & App Activity, Device Information, and Voice & Audio Activity
- https://wiki.mediamonks.net/Monkapps2
- See "Public URL for local machine"
- Skip step 5, dev-server.js takes care of this
- In
config/dialogflow.json
, put a random string key in theauthenticationKey
field. - In the Dialogflow console, go to Fulfillment and in the
Headers
field, put the keyAuthentication
and the valueBearer {KEY}
, where{KEY}
is the same key that you put in the config file.
In order to use the syncing tools, there should be a key-file with credentials for the project you want to interact with in the tools/sync/keys
folder. Note that you can have more than one file (for multiple projects).
After that, you can run the sync script like so:
npm run sync PROJECT-ID OPERATION [RESTORE-FILE]
The PROJECT-ID
is used to look up the correct key-file, and OPERATION
can be one of the following:
- down: writes the remote project to local json files into
config/dialogflow-agent
(and runs validate command when done) - up: pushes local json files to remote
- compare: shows differences between local & remote
- validate: gives some reports on the local files
- export: exports the project to a zip file
- restore: restores the project from a zip file (3rd argument)