Skip to content

Boilerplate and example code for use with the Kiai VoiceAction Framework

Notifications You must be signed in to change notification settings

mediamonks/kiai-skeleton

Repository files navigation

Kiai VoiceAction Skeleton

Boilerplate and example code for using the Kiai VoiceAction Framework. See Kiai VoiceAction Framework.

First time setup

Set up Google security for using the AoG Simulator

Setting up Monkapps reverse tunnel for local dev

Project Configuration

Webhook Authentication

  • In config/dialogflow.json, put a random string key in the authenticationKey field.
  • In the Dialogflow console, go to Fulfillment and in the Headers field, put the key Authentication and the value Bearer {KEY}, where {KEY} is the same key that you put in the config file.

Sync Dialogflow agent

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)

About

Boilerplate and example code for use with the Kiai VoiceAction Framework

Resources

Stars

Watchers

Forks

Packages

No packages published