google_dialogflow_cx_intent

An intent represents a user's intent to interact with a conversational agent.

To get more information about Intent, see:

Open in Cloud Shell

Example Usage - Dialogflowcx Intent Full

resource "google_dialogflow_cx_agent" "agent" {
  display_name = "dialogflowcx-agent"
  location = "global"
  default_language_code = "en"
  supported_language_codes = ["fr","de","es"]
  time_zone = "America/New_York"
  description = "Example description."
  avatar_uri = "https://cloud.google.com/_static/images/cloud/icons/favicons/onecloud/super_cloud.png"
  enable_stackdriver_logging = true
  enable_spell_correction    = true
  speech_to_text_settings {
    enable_speech_adaptation = true
  }
}


resource "google_dialogflow_cx_intent" "basic_intent" {
  parent       = google_dialogflow_cx_agent.agent.id
  display_name = "Example"
  priority     = 1
  description  = "Intent example"
  training_phrases {
     parts {
         text = "training"
     }

     parts {
         text = "phrase"
     }

     parts {
         text = "example"
     }

     repeat_count = 1
  }

  parameters {
    id          = "param1"
    entity_type = "projects/-/locations/-/agents/-/entityTypes/sys.date"
  }

  labels  = {
      label1 = "value1",
      label2 = "value2"
   } 
} 

Argument Reference

The following arguments are supported:


The training_phrases block supports:

The parts block supports:

The parameters block supports:

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

Intent can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import Intent using one of the formats above. For example:

import {
  id = "{{parent}}/intents/{{name}}"
  to = google_dialogflow_cx_intent.default
}

When using the terraform import command, Intent can be imported using one of the formats above. For example:

$ terraform import google_dialogflow_cx_intent.default {{parent}}/intents/{{name}}
$ terraform import google_dialogflow_cx_intent.default {{parent}}/{{name}}