Google Cloud (GCP) Classic

v6.43.0 published on Tuesday, Nov 15, 2022 by Pulumi

Intent

Represents a Dialogflow intent. Intents convert a number of user expressions or patterns into an action. An action is an extraction of a user command or sentence semantics.

To get more information about Intent, see:

Example Usage

Dialogflow Intent Basic

using System.Collections.Generic;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var basicAgent = new Gcp.Diagflow.Agent("basicAgent", new()
    {
        DisplayName = "example_agent",
        DefaultLanguageCode = "en",
        TimeZone = "America/New_York",
    });

    var basicIntent = new Gcp.Diagflow.Intent("basicIntent", new()
    {
        DisplayName = "basic-intent",
    }, new CustomResourceOptions
    {
        DependsOn = new[]
        {
            basicAgent,
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/diagflow"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		basicAgent, err := diagflow.NewAgent(ctx, "basicAgent", &diagflow.AgentArgs{
			DisplayName:         pulumi.String("example_agent"),
			DefaultLanguageCode: pulumi.String("en"),
			TimeZone:            pulumi.String("America/New_York"),
		})
		if err != nil {
			return err
		}
		_, err = diagflow.NewIntent(ctx, "basicIntent", &diagflow.IntentArgs{
			DisplayName: pulumi.String("basic-intent"),
		}, pulumi.DependsOn([]pulumi.Resource{
			basicAgent,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.diagflow.Agent;
import com.pulumi.gcp.diagflow.AgentArgs;
import com.pulumi.gcp.diagflow.Intent;
import com.pulumi.gcp.diagflow.IntentArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var basicAgent = new Agent("basicAgent", AgentArgs.builder()        
            .displayName("example_agent")
            .defaultLanguageCode("en")
            .timeZone("America/New_York")
            .build());

        var basicIntent = new Intent("basicIntent", IntentArgs.builder()        
            .displayName("basic-intent")
            .build(), CustomResourceOptions.builder()
                .dependsOn(basicAgent)
                .build());

    }
}
import pulumi
import pulumi_gcp as gcp

basic_agent = gcp.diagflow.Agent("basicAgent",
    display_name="example_agent",
    default_language_code="en",
    time_zone="America/New_York")
basic_intent = gcp.diagflow.Intent("basicIntent", display_name="basic-intent",
opts=pulumi.ResourceOptions(depends_on=[basic_agent]))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const basicAgent = new gcp.diagflow.Agent("basicAgent", {
    displayName: "example_agent",
    defaultLanguageCode: "en",
    timeZone: "America/New_York",
});
const basicIntent = new gcp.diagflow.Intent("basicIntent", {displayName: "basic-intent"}, {
    dependsOn: [basicAgent],
});
resources:
  basicAgent:
    type: gcp:diagflow:Agent
    properties:
      displayName: example_agent
      defaultLanguageCode: en
      timeZone: America/New_York
  basicIntent:
    type: gcp:diagflow:Intent
    properties:
      displayName: basic-intent
    options:
      dependson:
        - ${basicAgent}

Dialogflow Intent Full

using System.Collections.Generic;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var agentProjectProject = new Gcp.Organizations.Project("agentProjectProject", new()
    {
        ProjectId = "tf-test-dialogflow",
        OrgId = "123456789",
    });

    var agentProjectService = new Gcp.Projects.Service("agentProjectService", new()
    {
        Project = agentProjectProject.ProjectId,
        ServiceName = "dialogflow.googleapis.com",
        DisableDependentServices = false,
    });

    var dialogflowServiceAccount = new Gcp.ServiceAccount.Account("dialogflowServiceAccount", new()
    {
        AccountId = "tf-test-dialogflow",
    });

    var agentCreate = new Gcp.Projects.IAMMember("agentCreate", new()
    {
        Project = agentProjectService.Project,
        Role = "roles/dialogflow.admin",
        Member = dialogflowServiceAccount.Email.Apply(email => $"serviceAccount:{email}"),
    });

    var basicAgent = new Gcp.Diagflow.Agent("basicAgent", new()
    {
        Project = agentProjectProject.ProjectId,
        DisplayName = "example_agent",
        DefaultLanguageCode = "en",
        TimeZone = "America/New_York",
    });

    var fullIntent = new Gcp.Diagflow.Intent("fullIntent", new()
    {
        Project = agentProjectProject.ProjectId,
        DisplayName = "full-intent",
        WebhookState = "WEBHOOK_STATE_ENABLED",
        Priority = 1,
        IsFallback = false,
        MlDisabled = true,
        Action = "some_action",
        ResetContexts = true,
        InputContextNames = new[]
        {
            agentProjectProject.ProjectId.Apply(projectId => $"projects/{projectId}/agent/sessions/-/contexts/some_id"),
        },
        Events = new[]
        {
            "some_event",
        },
        DefaultResponsePlatforms = new[]
        {
            "FACEBOOK",
            "SLACK",
        },
    }, new CustomResourceOptions
    {
        DependsOn = new[]
        {
            basicAgent,
        },
    });

});
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/diagflow"
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/projects"
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/serviceAccount"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		agentProjectProject, err := organizations.NewProject(ctx, "agentProjectProject", &organizations.ProjectArgs{
			ProjectId: pulumi.String("tf-test-dialogflow"),
			OrgId:     pulumi.String("123456789"),
		})
		if err != nil {
			return err
		}
		agentProjectService, err := projects.NewService(ctx, "agentProjectService", &projects.ServiceArgs{
			Project:                  agentProjectProject.ProjectId,
			Service:                  pulumi.String("dialogflow.googleapis.com"),
			DisableDependentServices: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		dialogflowServiceAccount, err := serviceAccount.NewAccount(ctx, "dialogflowServiceAccount", &serviceAccount.AccountArgs{
			AccountId: pulumi.String("tf-test-dialogflow"),
		})
		if err != nil {
			return err
		}
		_, err = projects.NewIAMMember(ctx, "agentCreate", &projects.IAMMemberArgs{
			Project: agentProjectService.Project,
			Role:    pulumi.String("roles/dialogflow.admin"),
			Member: dialogflowServiceAccount.Email.ApplyT(func(email string) (string, error) {
				return fmt.Sprintf("serviceAccount:%v", email), nil
			}).(pulumi.StringOutput),
		})
		if err != nil {
			return err
		}
		basicAgent, err := diagflow.NewAgent(ctx, "basicAgent", &diagflow.AgentArgs{
			Project:             agentProjectProject.ProjectId,
			DisplayName:         pulumi.String("example_agent"),
			DefaultLanguageCode: pulumi.String("en"),
			TimeZone:            pulumi.String("America/New_York"),
		})
		if err != nil {
			return err
		}
		_, err = diagflow.NewIntent(ctx, "fullIntent", &diagflow.IntentArgs{
			Project:       agentProjectProject.ProjectId,
			DisplayName:   pulumi.String("full-intent"),
			WebhookState:  pulumi.String("WEBHOOK_STATE_ENABLED"),
			Priority:      pulumi.Int(1),
			IsFallback:    pulumi.Bool(false),
			MlDisabled:    pulumi.Bool(true),
			Action:        pulumi.String("some_action"),
			ResetContexts: pulumi.Bool(true),
			InputContextNames: pulumi.StringArray{
				agentProjectProject.ProjectId.ApplyT(func(projectId string) (string, error) {
					return fmt.Sprintf("projects/%v/agent/sessions/-/contexts/some_id", projectId), nil
				}).(pulumi.StringOutput),
			},
			Events: pulumi.StringArray{
				pulumi.String("some_event"),
			},
			DefaultResponsePlatforms: pulumi.StringArray{
				pulumi.String("FACEBOOK"),
				pulumi.String("SLACK"),
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			basicAgent,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.Project;
import com.pulumi.gcp.organizations.ProjectArgs;
import com.pulumi.gcp.projects.Service;
import com.pulumi.gcp.projects.ServiceArgs;
import com.pulumi.gcp.serviceAccount.Account;
import com.pulumi.gcp.serviceAccount.AccountArgs;
import com.pulumi.gcp.projects.IAMMember;
import com.pulumi.gcp.projects.IAMMemberArgs;
import com.pulumi.gcp.diagflow.Agent;
import com.pulumi.gcp.diagflow.AgentArgs;
import com.pulumi.gcp.diagflow.Intent;
import com.pulumi.gcp.diagflow.IntentArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var agentProjectProject = new Project("agentProjectProject", ProjectArgs.builder()        
            .projectId("tf-test-dialogflow")
            .orgId("123456789")
            .build());

        var agentProjectService = new Service("agentProjectService", ServiceArgs.builder()        
            .project(agentProjectProject.projectId())
            .service("dialogflow.googleapis.com")
            .disableDependentServices(false)
            .build());

        var dialogflowServiceAccount = new Account("dialogflowServiceAccount", AccountArgs.builder()        
            .accountId("tf-test-dialogflow")
            .build());

        var agentCreate = new IAMMember("agentCreate", IAMMemberArgs.builder()        
            .project(agentProjectService.project())
            .role("roles/dialogflow.admin")
            .member(dialogflowServiceAccount.email().applyValue(email -> String.format("serviceAccount:%s", email)))
            .build());

        var basicAgent = new Agent("basicAgent", AgentArgs.builder()        
            .project(agentProjectProject.projectId())
            .displayName("example_agent")
            .defaultLanguageCode("en")
            .timeZone("America/New_York")
            .build());

        var fullIntent = new Intent("fullIntent", IntentArgs.builder()        
            .project(agentProjectProject.projectId())
            .displayName("full-intent")
            .webhookState("WEBHOOK_STATE_ENABLED")
            .priority(1)
            .isFallback(false)
            .mlDisabled(true)
            .action("some_action")
            .resetContexts(true)
            .inputContextNames(agentProjectProject.projectId().applyValue(projectId -> String.format("projects/%s/agent/sessions/-/contexts/some_id", projectId)))
            .events("some_event")
            .defaultResponsePlatforms(            
                "FACEBOOK",
                "SLACK")
            .build(), CustomResourceOptions.builder()
                .dependsOn(basicAgent)
                .build());

    }
}
import pulumi
import pulumi_gcp as gcp

agent_project_project = gcp.organizations.Project("agentProjectProject",
    project_id="tf-test-dialogflow",
    org_id="123456789")
agent_project_service = gcp.projects.Service("agentProjectService",
    project=agent_project_project.project_id,
    service="dialogflow.googleapis.com",
    disable_dependent_services=False)
dialogflow_service_account = gcp.service_account.Account("dialogflowServiceAccount", account_id="tf-test-dialogflow")
agent_create = gcp.projects.IAMMember("agentCreate",
    project=agent_project_service.project,
    role="roles/dialogflow.admin",
    member=dialogflow_service_account.email.apply(lambda email: f"serviceAccount:{email}"))
basic_agent = gcp.diagflow.Agent("basicAgent",
    project=agent_project_project.project_id,
    display_name="example_agent",
    default_language_code="en",
    time_zone="America/New_York")
full_intent = gcp.diagflow.Intent("fullIntent",
    project=agent_project_project.project_id,
    display_name="full-intent",
    webhook_state="WEBHOOK_STATE_ENABLED",
    priority=1,
    is_fallback=False,
    ml_disabled=True,
    action="some_action",
    reset_contexts=True,
    input_context_names=[agent_project_project.project_id.apply(lambda project_id: f"projects/{project_id}/agent/sessions/-/contexts/some_id")],
    events=["some_event"],
    default_response_platforms=[
        "FACEBOOK",
        "SLACK",
    ],
    opts=pulumi.ResourceOptions(depends_on=[basic_agent]))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const agentProjectProject = new gcp.organizations.Project("agentProjectProject", {
    projectId: "tf-test-dialogflow",
    orgId: "123456789",
});
const agentProjectService = new gcp.projects.Service("agentProjectService", {
    project: agentProjectProject.projectId,
    service: "dialogflow.googleapis.com",
    disableDependentServices: false,
});
const dialogflowServiceAccount = new gcp.serviceaccount.Account("dialogflowServiceAccount", {accountId: "tf-test-dialogflow"});
const agentCreate = new gcp.projects.IAMMember("agentCreate", {
    project: agentProjectService.project,
    role: "roles/dialogflow.admin",
    member: pulumi.interpolate`serviceAccount:${dialogflowServiceAccount.email}`,
});
const basicAgent = new gcp.diagflow.Agent("basicAgent", {
    project: agentProjectProject.projectId,
    displayName: "example_agent",
    defaultLanguageCode: "en",
    timeZone: "America/New_York",
});
const fullIntent = new gcp.diagflow.Intent("fullIntent", {
    project: agentProjectProject.projectId,
    displayName: "full-intent",
    webhookState: "WEBHOOK_STATE_ENABLED",
    priority: 1,
    isFallback: false,
    mlDisabled: true,
    action: "some_action",
    resetContexts: true,
    inputContextNames: [pulumi.interpolate`projects/${agentProjectProject.projectId}/agent/sessions/-/contexts/some_id`],
    events: ["some_event"],
    defaultResponsePlatforms: [
        "FACEBOOK",
        "SLACK",
    ],
}, {
    dependsOn: [basicAgent],
});
resources:
  agentProjectProject:
    type: gcp:organizations:Project
    properties:
      projectId: tf-test-dialogflow
      orgId: '123456789'
  agentProjectService:
    type: gcp:projects:Service
    properties:
      project: ${agentProjectProject.projectId}
      service: dialogflow.googleapis.com
      disableDependentServices: false
  dialogflowServiceAccount:
    type: gcp:serviceAccount:Account
    properties:
      accountId: tf-test-dialogflow
  agentCreate:
    type: gcp:projects:IAMMember
    properties:
      project: ${agentProjectService.project}
      role: roles/dialogflow.admin
      member: serviceAccount:${dialogflowServiceAccount.email}
  basicAgent:
    type: gcp:diagflow:Agent
    properties:
      project: ${agentProjectProject.projectId}
      displayName: example_agent
      defaultLanguageCode: en
      timeZone: America/New_York
  fullIntent:
    type: gcp:diagflow:Intent
    properties:
      project: ${agentProjectProject.projectId}
      displayName: full-intent
      webhookState: WEBHOOK_STATE_ENABLED
      priority: 1
      isFallback: false
      mlDisabled: true
      action: some_action
      resetContexts: true
      inputContextNames:
        - projects/${agentProjectProject.projectId}/agent/sessions/-/contexts/some_id
      events:
        - some_event
      defaultResponsePlatforms:
        - FACEBOOK
        - SLACK
    options:
      dependson:
        - ${basicAgent}

Create Intent Resource

new Intent(name: string, args: IntentArgs, opts?: CustomResourceOptions);
@overload
def Intent(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           action: Optional[str] = None,
           default_response_platforms: Optional[Sequence[str]] = None,
           display_name: Optional[str] = None,
           events: Optional[Sequence[str]] = None,
           input_context_names: Optional[Sequence[str]] = None,
           is_fallback: Optional[bool] = None,
           ml_disabled: Optional[bool] = None,
           parent_followup_intent_name: Optional[str] = None,
           priority: Optional[int] = None,
           project: Optional[str] = None,
           reset_contexts: Optional[bool] = None,
           webhook_state: Optional[str] = None)
@overload
def Intent(resource_name: str,
           args: IntentArgs,
           opts: Optional[ResourceOptions] = None)
func NewIntent(ctx *Context, name string, args IntentArgs, opts ...ResourceOption) (*Intent, error)
public Intent(string name, IntentArgs args, CustomResourceOptions? opts = null)
public Intent(String name, IntentArgs args)
public Intent(String name, IntentArgs args, CustomResourceOptions options)
type: gcp:diagflow:Intent
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args IntentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args IntentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args IntentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args IntentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args IntentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Intent Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Intent resource accepts the following input properties:

DisplayName string

The name of this intent to be displayed on the console.

Action string

The name of the action associated with the intent. Note: The action name must not contain whitespaces.

DefaultResponsePlatforms List<string>

The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Each value may be one of FACEBOOK, SLACK, TELEGRAM, KIK, SKYPE, LINE, VIBER, ACTIONS_ON_GOOGLE, and GOOGLE_HANGOUTS.

Events List<string>

The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the events reference for more details.

InputContextNames List<string>

The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.

IsFallback bool

Indicates whether this is a fallback intent.

MlDisabled bool

Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off.

ParentFollowupIntentName string

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

Priority int

The priority of this intent. Higher numbers represent higher priorities.

  • If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console.
  • If the supplied value is negative, the intent is ignored in runtime detect intent requests.
Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

ResetContexts bool

Indicates whether to delete all contexts in the current session when this intent is matched.

WebhookState string

Indicates whether webhooks are enabled for the intent.

  • WEBHOOK_STATE_ENABLED: Webhook is enabled in the agent and in the intent.
  • WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING: Webhook is enabled in the agent and in the intent. Also, each slot filling prompt is forwarded to the webhook. Possible values are WEBHOOK_STATE_ENABLED and WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING.
DisplayName string

The name of this intent to be displayed on the console.

Action string

The name of the action associated with the intent. Note: The action name must not contain whitespaces.

DefaultResponsePlatforms []string

The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Each value may be one of FACEBOOK, SLACK, TELEGRAM, KIK, SKYPE, LINE, VIBER, ACTIONS_ON_GOOGLE, and GOOGLE_HANGOUTS.

Events []string

The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the events reference for more details.

InputContextNames []string

The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.

IsFallback bool

Indicates whether this is a fallback intent.

MlDisabled bool

Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off.

ParentFollowupIntentName string

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

Priority int

The priority of this intent. Higher numbers represent higher priorities.

  • If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console.
  • If the supplied value is negative, the intent is ignored in runtime detect intent requests.
Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

ResetContexts bool

Indicates whether to delete all contexts in the current session when this intent is matched.

WebhookState string

Indicates whether webhooks are enabled for the intent.

  • WEBHOOK_STATE_ENABLED: Webhook is enabled in the agent and in the intent.
  • WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING: Webhook is enabled in the agent and in the intent. Also, each slot filling prompt is forwarded to the webhook. Possible values are WEBHOOK_STATE_ENABLED and WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING.
displayName String

The name of this intent to be displayed on the console.

action String

The name of the action associated with the intent. Note: The action name must not contain whitespaces.

defaultResponsePlatforms List<String>

The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Each value may be one of FACEBOOK, SLACK, TELEGRAM, KIK, SKYPE, LINE, VIBER, ACTIONS_ON_GOOGLE, and GOOGLE_HANGOUTS.

events List<String>

The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the events reference for more details.

inputContextNames List<String>

The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.

isFallback Boolean

Indicates whether this is a fallback intent.

mlDisabled Boolean

Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off.

parentFollowupIntentName String

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

priority Integer

The priority of this intent. Higher numbers represent higher priorities.

  • If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console.
  • If the supplied value is negative, the intent is ignored in runtime detect intent requests.
project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

resetContexts Boolean

Indicates whether to delete all contexts in the current session when this intent is matched.

webhookState String

Indicates whether webhooks are enabled for the intent.

  • WEBHOOK_STATE_ENABLED: Webhook is enabled in the agent and in the intent.
  • WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING: Webhook is enabled in the agent and in the intent. Also, each slot filling prompt is forwarded to the webhook. Possible values are WEBHOOK_STATE_ENABLED and WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING.
displayName string

The name of this intent to be displayed on the console.

action string

The name of the action associated with the intent. Note: The action name must not contain whitespaces.

defaultResponsePlatforms string[]

The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Each value may be one of FACEBOOK, SLACK, TELEGRAM, KIK, SKYPE, LINE, VIBER, ACTIONS_ON_GOOGLE, and GOOGLE_HANGOUTS.

events string[]

The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the events reference for more details.

inputContextNames string[]

The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.

isFallback boolean

Indicates whether this is a fallback intent.

mlDisabled boolean

Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off.

parentFollowupIntentName string

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

priority number

The priority of this intent. Higher numbers represent higher priorities.

  • If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console.
  • If the supplied value is negative, the intent is ignored in runtime detect intent requests.
project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

resetContexts boolean

Indicates whether to delete all contexts in the current session when this intent is matched.

webhookState string

Indicates whether webhooks are enabled for the intent.

  • WEBHOOK_STATE_ENABLED: Webhook is enabled in the agent and in the intent.
  • WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING: Webhook is enabled in the agent and in the intent. Also, each slot filling prompt is forwarded to the webhook. Possible values are WEBHOOK_STATE_ENABLED and WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING.
display_name str

The name of this intent to be displayed on the console.

action str

The name of the action associated with the intent. Note: The action name must not contain whitespaces.

default_response_platforms Sequence[str]

The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Each value may be one of FACEBOOK, SLACK, TELEGRAM, KIK, SKYPE, LINE, VIBER, ACTIONS_ON_GOOGLE, and GOOGLE_HANGOUTS.

events Sequence[str]

The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the events reference for more details.

input_context_names Sequence[str]

The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.

is_fallback bool

Indicates whether this is a fallback intent.

ml_disabled bool

Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off.

parent_followup_intent_name str

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

priority int

The priority of this intent. Higher numbers represent higher priorities.

  • If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console.
  • If the supplied value is negative, the intent is ignored in runtime detect intent requests.
project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

reset_contexts bool

Indicates whether to delete all contexts in the current session when this intent is matched.

webhook_state str

Indicates whether webhooks are enabled for the intent.

  • WEBHOOK_STATE_ENABLED: Webhook is enabled in the agent and in the intent.
  • WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING: Webhook is enabled in the agent and in the intent. Also, each slot filling prompt is forwarded to the webhook. Possible values are WEBHOOK_STATE_ENABLED and WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING.
displayName String

The name of this intent to be displayed on the console.

action String

The name of the action associated with the intent. Note: The action name must not contain whitespaces.

defaultResponsePlatforms List<String>

The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Each value may be one of FACEBOOK, SLACK, TELEGRAM, KIK, SKYPE, LINE, VIBER, ACTIONS_ON_GOOGLE, and GOOGLE_HANGOUTS.

events List<String>

The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the events reference for more details.

inputContextNames List<String>

The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.

isFallback Boolean

Indicates whether this is a fallback intent.

mlDisabled Boolean

Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off.

parentFollowupIntentName String

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

priority Number

The priority of this intent. Higher numbers represent higher priorities.

  • If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console.
  • If the supplied value is negative, the intent is ignored in runtime detect intent requests.
project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

resetContexts Boolean

Indicates whether to delete all contexts in the current session when this intent is matched.

webhookState String

Indicates whether webhooks are enabled for the intent.

  • WEBHOOK_STATE_ENABLED: Webhook is enabled in the agent and in the intent.
  • WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING: Webhook is enabled in the agent and in the intent. Also, each slot filling prompt is forwarded to the webhook. Possible values are WEBHOOK_STATE_ENABLED and WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING.

Outputs

All input properties are implicitly available as output properties. Additionally, the Intent resource produces the following output properties:

FollowupIntentInfos List<IntentFollowupIntentInfo>

Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The unique identifier of this intent. Format: projects//agent/intents/.

RootFollowupIntentName string

The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: projects//agent/intents/.

FollowupIntentInfos []IntentFollowupIntentInfo

Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The unique identifier of this intent. Format: projects//agent/intents/.

RootFollowupIntentName string

The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: projects//agent/intents/.

followupIntentInfos List<IntentFollowupIntentInfo>

Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.

id String

The provider-assigned unique ID for this managed resource.

name String

The unique identifier of this intent. Format: projects//agent/intents/.

rootFollowupIntentName String

The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: projects//agent/intents/.

followupIntentInfos IntentFollowupIntentInfo[]

Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.

id string

The provider-assigned unique ID for this managed resource.

name string

The unique identifier of this intent. Format: projects//agent/intents/.

rootFollowupIntentName string

The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: projects//agent/intents/.

followup_intent_infos Sequence[IntentFollowupIntentInfo]

Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.

id str

The provider-assigned unique ID for this managed resource.

name str

The unique identifier of this intent. Format: projects//agent/intents/.

root_followup_intent_name str

The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: projects//agent/intents/.

followupIntentInfos List<Property Map>

Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.

id String

The provider-assigned unique ID for this managed resource.

name String

The unique identifier of this intent. Format: projects//agent/intents/.

rootFollowupIntentName String

The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: projects//agent/intents/.

Look up Existing Intent Resource

Get an existing Intent resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: IntentState, opts?: CustomResourceOptions): Intent
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action: Optional[str] = None,
        default_response_platforms: Optional[Sequence[str]] = None,
        display_name: Optional[str] = None,
        events: Optional[Sequence[str]] = None,
        followup_intent_infos: Optional[Sequence[IntentFollowupIntentInfoArgs]] = None,
        input_context_names: Optional[Sequence[str]] = None,
        is_fallback: Optional[bool] = None,
        ml_disabled: Optional[bool] = None,
        name: Optional[str] = None,
        parent_followup_intent_name: Optional[str] = None,
        priority: Optional[int] = None,
        project: Optional[str] = None,
        reset_contexts: Optional[bool] = None,
        root_followup_intent_name: Optional[str] = None,
        webhook_state: Optional[str] = None) -> Intent
func GetIntent(ctx *Context, name string, id IDInput, state *IntentState, opts ...ResourceOption) (*Intent, error)
public static Intent Get(string name, Input<string> id, IntentState? state, CustomResourceOptions? opts = null)
public static Intent get(String name, Output<String> id, IntentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Action string

The name of the action associated with the intent. Note: The action name must not contain whitespaces.

DefaultResponsePlatforms List<string>

The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Each value may be one of FACEBOOK, SLACK, TELEGRAM, KIK, SKYPE, LINE, VIBER, ACTIONS_ON_GOOGLE, and GOOGLE_HANGOUTS.

DisplayName string

The name of this intent to be displayed on the console.

Events List<string>

The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the events reference for more details.

FollowupIntentInfos List<IntentFollowupIntentInfoArgs>

Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.

InputContextNames List<string>

The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.

IsFallback bool

Indicates whether this is a fallback intent.

MlDisabled bool

Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off.

Name string

The unique identifier of this intent. Format: projects//agent/intents/.

ParentFollowupIntentName string

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

Priority int

The priority of this intent. Higher numbers represent higher priorities.

  • If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console.
  • If the supplied value is negative, the intent is ignored in runtime detect intent requests.
Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

ResetContexts bool

Indicates whether to delete all contexts in the current session when this intent is matched.

RootFollowupIntentName string

The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: projects//agent/intents/.

WebhookState string

Indicates whether webhooks are enabled for the intent.

  • WEBHOOK_STATE_ENABLED: Webhook is enabled in the agent and in the intent.
  • WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING: Webhook is enabled in the agent and in the intent. Also, each slot filling prompt is forwarded to the webhook. Possible values are WEBHOOK_STATE_ENABLED and WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING.
Action string

The name of the action associated with the intent. Note: The action name must not contain whitespaces.

DefaultResponsePlatforms []string

The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Each value may be one of FACEBOOK, SLACK, TELEGRAM, KIK, SKYPE, LINE, VIBER, ACTIONS_ON_GOOGLE, and GOOGLE_HANGOUTS.

DisplayName string

The name of this intent to be displayed on the console.

Events []string

The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the events reference for more details.

FollowupIntentInfos []IntentFollowupIntentInfoArgs

Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.

InputContextNames []string

The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.

IsFallback bool

Indicates whether this is a fallback intent.

MlDisabled bool

Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off.

Name string

The unique identifier of this intent. Format: projects//agent/intents/.

ParentFollowupIntentName string

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

Priority int

The priority of this intent. Higher numbers represent higher priorities.

  • If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console.
  • If the supplied value is negative, the intent is ignored in runtime detect intent requests.
Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

ResetContexts bool

Indicates whether to delete all contexts in the current session when this intent is matched.

RootFollowupIntentName string

The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: projects//agent/intents/.

WebhookState string

Indicates whether webhooks are enabled for the intent.

  • WEBHOOK_STATE_ENABLED: Webhook is enabled in the agent and in the intent.
  • WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING: Webhook is enabled in the agent and in the intent. Also, each slot filling prompt is forwarded to the webhook. Possible values are WEBHOOK_STATE_ENABLED and WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING.
action String

The name of the action associated with the intent. Note: The action name must not contain whitespaces.

defaultResponsePlatforms List<String>

The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Each value may be one of FACEBOOK, SLACK, TELEGRAM, KIK, SKYPE, LINE, VIBER, ACTIONS_ON_GOOGLE, and GOOGLE_HANGOUTS.

displayName String

The name of this intent to be displayed on the console.

events List<String>

The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the events reference for more details.

followupIntentInfos List<IntentFollowupIntentInfoArgs>

Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.

inputContextNames List<String>

The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.

isFallback Boolean

Indicates whether this is a fallback intent.

mlDisabled Boolean

Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off.

name String

The unique identifier of this intent. Format: projects//agent/intents/.

parentFollowupIntentName String

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

priority Integer

The priority of this intent. Higher numbers represent higher priorities.

  • If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console.
  • If the supplied value is negative, the intent is ignored in runtime detect intent requests.
project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

resetContexts Boolean

Indicates whether to delete all contexts in the current session when this intent is matched.

rootFollowupIntentName String

The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: projects//agent/intents/.

webhookState String

Indicates whether webhooks are enabled for the intent.

  • WEBHOOK_STATE_ENABLED: Webhook is enabled in the agent and in the intent.
  • WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING: Webhook is enabled in the agent and in the intent. Also, each slot filling prompt is forwarded to the webhook. Possible values are WEBHOOK_STATE_ENABLED and WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING.
action string

The name of the action associated with the intent. Note: The action name must not contain whitespaces.

defaultResponsePlatforms string[]

The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Each value may be one of FACEBOOK, SLACK, TELEGRAM, KIK, SKYPE, LINE, VIBER, ACTIONS_ON_GOOGLE, and GOOGLE_HANGOUTS.

displayName string

The name of this intent to be displayed on the console.

events string[]

The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the events reference for more details.

followupIntentInfos IntentFollowupIntentInfoArgs[]

Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.

inputContextNames string[]

The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.

isFallback boolean

Indicates whether this is a fallback intent.

mlDisabled boolean

Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off.

name string

The unique identifier of this intent. Format: projects//agent/intents/.

parentFollowupIntentName string

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

priority number

The priority of this intent. Higher numbers represent higher priorities.

  • If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console.
  • If the supplied value is negative, the intent is ignored in runtime detect intent requests.
project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

resetContexts boolean

Indicates whether to delete all contexts in the current session when this intent is matched.

rootFollowupIntentName string

The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: projects//agent/intents/.

webhookState string

Indicates whether webhooks are enabled for the intent.

  • WEBHOOK_STATE_ENABLED: Webhook is enabled in the agent and in the intent.
  • WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING: Webhook is enabled in the agent and in the intent. Also, each slot filling prompt is forwarded to the webhook. Possible values are WEBHOOK_STATE_ENABLED and WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING.
action str

The name of the action associated with the intent. Note: The action name must not contain whitespaces.

default_response_platforms Sequence[str]

The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Each value may be one of FACEBOOK, SLACK, TELEGRAM, KIK, SKYPE, LINE, VIBER, ACTIONS_ON_GOOGLE, and GOOGLE_HANGOUTS.

display_name str

The name of this intent to be displayed on the console.

events Sequence[str]

The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the events reference for more details.

followup_intent_infos Sequence[IntentFollowupIntentInfoArgs]

Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.

input_context_names Sequence[str]

The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.

is_fallback bool

Indicates whether this is a fallback intent.

ml_disabled bool

Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off.

name str

The unique identifier of this intent. Format: projects//agent/intents/.

parent_followup_intent_name str

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

priority int

The priority of this intent. Higher numbers represent higher priorities.

  • If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console.
  • If the supplied value is negative, the intent is ignored in runtime detect intent requests.
project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

reset_contexts bool

Indicates whether to delete all contexts in the current session when this intent is matched.

root_followup_intent_name str

The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: projects//agent/intents/.

webhook_state str

Indicates whether webhooks are enabled for the intent.

  • WEBHOOK_STATE_ENABLED: Webhook is enabled in the agent and in the intent.
  • WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING: Webhook is enabled in the agent and in the intent. Also, each slot filling prompt is forwarded to the webhook. Possible values are WEBHOOK_STATE_ENABLED and WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING.
action String

The name of the action associated with the intent. Note: The action name must not contain whitespaces.

defaultResponsePlatforms List<String>

The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). Each value may be one of FACEBOOK, SLACK, TELEGRAM, KIK, SKYPE, LINE, VIBER, ACTIONS_ON_GOOGLE, and GOOGLE_HANGOUTS.

displayName String

The name of this intent to be displayed on the console.

events List<String>

The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. See the events reference for more details.

followupIntentInfos List<Property Map>

Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.

inputContextNames List<String>

The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.

isFallback Boolean

Indicates whether this is a fallback intent.

mlDisabled Boolean

Indicates whether Machine Learning is disabled for the intent. Note: If mlDisabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off.

name String

The unique identifier of this intent. Format: projects//agent/intents/.

parentFollowupIntentName String

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

priority Number

The priority of this intent. Higher numbers represent higher priorities.

  • If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console.
  • If the supplied value is negative, the intent is ignored in runtime detect intent requests.
project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

resetContexts Boolean

Indicates whether to delete all contexts in the current session when this intent is matched.

rootFollowupIntentName String

The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: projects//agent/intents/.

webhookState String

Indicates whether webhooks are enabled for the intent.

  • WEBHOOK_STATE_ENABLED: Webhook is enabled in the agent and in the intent.
  • WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING: Webhook is enabled in the agent and in the intent. Also, each slot filling prompt is forwarded to the webhook. Possible values are WEBHOOK_STATE_ENABLED and WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING.

Supporting Types

IntentFollowupIntentInfo

FollowupIntentName string
ParentFollowupIntentName string

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

FollowupIntentName string
ParentFollowupIntentName string

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

followupIntentName String
parentFollowupIntentName String

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

followupIntentName string
parentFollowupIntentName string

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

followup_intent_name str
parent_followup_intent_name str

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

followupIntentName String
parentFollowupIntentName String

The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.

Import

Intent can be imported using any of these accepted formats

 $ pulumi import gcp:diagflow/intent:Intent default {{name}}

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes

This Pulumi package is based on the google-beta Terraform Provider.