Google Dialogflow CX Version
This page shows how to write Terraform for Dialogflow CX Version and write them securely.
google_dialogflow_cx_version (Terraform)
The Version in Dialogflow CX can be configured in Terraform with the resource name google_dialogflow_cx_version
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
The following arguments are supported:
display_name
- (Required) The human-readable name of the version. Limit of 64 characters.
description
- (Optional) The description of the version. The maximum length is 500 characters. If exceeded, the request is rejected.parent
- (Optional) The Flow to create an Version for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format[[parent]]/versions/[[name]]
name
- Format: projects//locations//agents//flows//versions/. Version ID is a self-increasing number generated by Dialogflow upon version creation.nlu_settings
- The NLU settings of the flow at version creation. Structure is documented below.create_time
- A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".state
- The state of this version.- RUNNING: Version is not ready to serve (e.g. training is running).
- SUCCEEDED: Training has succeeded and this version is ready to serve.
- FAILED: Version training failed.
model_type
- (Optional) Indicates the type of NLU model.- MODEL_TYPE_STANDARD: Use standard NLU model.
- MODEL_TYPE_ADVANCED: Use advanced NLU model.
Possible values are
MODEL_TYPE_STANDARD
andMODEL_TYPE_ADVANCED
.
classification_threshold
- (Optional) To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a no-match event will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.model_training_mode
- (Optional) Indicates NLU model training mode.- MODEL_TRAINING_MODE_AUTOMATIC: NLU model training is automatically triggered when a flow gets modified. User can also manually trigger model training in this mode.
- MODEL_TRAINING_MODE_MANUAL: User needs to manually trigger NLU model training. Best for large flows whose models take long time to train.
Possible values are
MODEL_TRAINING_MODE_AUTOMATIC
andMODEL_TRAINING_MODE_MANUAL
.
Explanation in Terraform Registry
You can create multiple versions of your agent flows and deploy them to separate serving environments. When you edit a flow, you are editing a draft flow. At any point, you can save a draft flow as a flow version. A flow version is an immutable snapshot of your flow data and associated agent data like intents, entities, webhooks, pages, route groups, etc. To get more information about Version, see:
- API documentation
- How-to Guides