- Clone or copy the kiai-skeleton.
- Run
$ yarn
. - Update the
name
,version
,description
,repository
andauthor
fields in./package.json
. - Create a Google Cloud project.
- Create a Dialogflow agent and select the Google project you just created.
- In your Dialogflow agent, go to
Settings (cogwheel) > Export and Import
and import the./Kiai-Skeleton.zip
. - Go to Google Account Activity Controls and ensure that
Web & App Activity
,Device Information
andVoice & Audio Activity
are enabled.
See ./docs/flows.md
See ./docs/dialog.md
See ./docs/voice.md
See ./docs/sfx.md
See ./docs/dialog.md
- Run
$ yarn dev
. - Copy the public dialogflow endpoint which is printed to the console.
- Go to your Dialogflow agent and create an export via
Properties > Export and Import
. - Create a new, private, Dialogflow agent and import the exported zip files.
- In this cloned agent, go to
Fulfillment
and paste the copied endpoint URL.
- In the Google Cloud console, go to
Service accounts
underIAM & admin
and create a new service account. - Call the account
datastore
or something else appropriate. - Select the role
Cloud Datastore User
under Datastore. - Create a key, type JSON.
- Put the contents of the downloaded JSON file in
./config/datastore.json
. - The module
./lib/datastore.js
provides a simple interface. - The module
./lib/import.js
provides an endpoint for bulk imports.
- Add Firebase to your Google project.
- If this is your first time using firebase CLI, run
$ firebase login
first. - Get your Google project ID (from e.g. the URL) and put it in
.firebaserc
. - Run
$ yarn build && yarn deploy
to deploy. - In the Firebase console, go to
Functions
and copy the URL of your endpoint. - In Dialogflow, go to
Fullfilment
and paste the URL underWebhook
.