Use Terraform to templatize REST API calls to Dialogflow in Google Cloud.
Uses a REST API call invoked from Terraform to modify the training phrases in the default welcome intent.
- Register for a Google Cloud account (https://cloud.google.com/docs/get-started)
- Enable the Dialogflow API (https://cloud.google.com/dialogflow/cx/docs/quick/setup)
- Install and initialize the Google Cloud
gcloud
CLI tool (https://cloud.google.com/sdk/docs/install) - Install Terraform (https://developer.hashicorp.com/terraform/downloads)
- Clone this repository and
cd
into theterraform/
directory - Edit the values in
variables.tf
- Run
terraform init
- Run
terraform apply