An open API service indexing awesome lists of open source software.

https://github.com/koverholt/dialogflow-terraform-rest-api

Using Terraform to Templatize REST API calls to Dialogflow
https://github.com/koverholt/dialogflow-terraform-rest-api

agents dialogflow google-cloud rest-api terraform

Last synced: about 1 month ago
JSON representation

Using Terraform to Templatize REST API calls to Dialogflow

Awesome Lists containing this project

README

          

# Using Terraform with REST API calls to Dialogflow

[![terraform-lint](https://github.com/koverholt/dialogflow-terraform-rest-api/actions/workflows/main.yml/badge.svg)](https://github.com/koverholt/dialogflow-terraform-rest-api/actions/workflows/main.yml)

Use Terraform to templatize REST API calls to Dialogflow in Google Cloud.

![Dialogflow CX Default Welcome Intent](images/templatizing-default-welcome-intent.png)

Uses a REST API call invoked from Terraform to modify the training phrases in
the default welcome intent.

![Dialogflow CX Intent Training Phrases](images/templatizing-new-training-phrases.png)

# Prerequisites

* 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)

# Usage

1. Clone this repository and `cd` into the `terraform/` directory
1. Edit the values in `variables.tf`
1. Run `terraform init`
1. Run `terraform apply`