1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. diagflow
  5. Intent
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

gcp.diagflow.Intent

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const basicAgent = new gcp.diagflow.Agent("basic_agent", {
        displayName: "example_agent",
        defaultLanguageCode: "en",
        timeZone: "America/New_York",
    });
    const basicIntent = new gcp.diagflow.Intent("basic_intent", {displayName: "basic-intent"}, {
        dependsOn: [basicAgent],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    basic_agent = gcp.diagflow.Agent("basic_agent",
        display_name="example_agent",
        default_language_code="en",
        time_zone="America/New_York")
    basic_intent = gcp.diagflow.Intent("basic_intent", display_name="basic-intent",
    opts = pulumi.ResourceOptions(depends_on=[basic_agent]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/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, "basic_agent", &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, "basic_intent", &diagflow.IntentArgs{
    			DisplayName: pulumi.String("basic-intent"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			basicAgent,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var basicAgent = new Gcp.Diagflow.Agent("basic_agent", new()
        {
            DisplayName = "example_agent",
            DefaultLanguageCode = "en",
            TimeZone = "America/New_York",
        });
    
        var basicIntent = new Gcp.Diagflow.Intent("basic_intent", new()
        {
            DisplayName = "basic-intent",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                basicAgent,
            },
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      basicAgent:
        type: gcp:diagflow:Agent
        name: basic_agent
        properties:
          displayName: example_agent
          defaultLanguageCode: en
          timeZone: America/New_York
      basicIntent:
        type: gcp:diagflow:Intent
        name: basic_intent
        properties:
          displayName: basic-intent
        options:
          dependson:
            - ${basicAgent}
    

    Dialogflow Intent Full

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const agentProject = new gcp.organizations.Project("agent_project", {
        projectId: "my-project",
        name: "my-project",
        orgId: "123456789",
        deletionPolicy: "DELETE",
    });
    const agentProjectService = new gcp.projects.Service("agent_project", {
        project: agentProject.projectId,
        service: "dialogflow.googleapis.com",
        disableDependentServices: false,
    });
    const dialogflowServiceAccount = new gcp.serviceaccount.Account("dialogflow_service_account", {accountId: "my-account"});
    const agentCreate = new gcp.projects.IAMMember("agent_create", {
        project: agentProjectService.project,
        role: "roles/dialogflow.admin",
        member: pulumi.interpolate`serviceAccount:${dialogflowServiceAccount.email}`,
    });
    const basicAgent = new gcp.diagflow.Agent("basic_agent", {
        project: agentProject.projectId,
        displayName: "example_agent",
        defaultLanguageCode: "en",
        timeZone: "America/New_York",
    });
    const fullIntent = new gcp.diagflow.Intent("full_intent", {
        project: agentProject.projectId,
        displayName: "full-intent",
        webhookState: "WEBHOOK_STATE_ENABLED",
        priority: 1,
        isFallback: false,
        mlDisabled: true,
        action: "some_action",
        resetContexts: true,
        inputContextNames: [pulumi.interpolate`projects/${agentProject.projectId}/agent/sessions/-/contexts/some_id`],
        events: ["some_event"],
        defaultResponsePlatforms: [
            "FACEBOOK",
            "SLACK",
        ],
    }, {
        dependsOn: [basicAgent],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    agent_project = gcp.organizations.Project("agent_project",
        project_id="my-project",
        name="my-project",
        org_id="123456789",
        deletion_policy="DELETE")
    agent_project_service = gcp.projects.Service("agent_project",
        project=agent_project.project_id,
        service="dialogflow.googleapis.com",
        disable_dependent_services=False)
    dialogflow_service_account = gcp.serviceaccount.Account("dialogflow_service_account", account_id="my-account")
    agent_create = gcp.projects.IAMMember("agent_create",
        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("basic_agent",
        project=agent_project.project_id,
        display_name="example_agent",
        default_language_code="en",
        time_zone="America/New_York")
    full_intent = gcp.diagflow.Intent("full_intent",
        project=agent_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_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]))
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/diagflow"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/projects"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/serviceaccount"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		agentProject, err := organizations.NewProject(ctx, "agent_project", &organizations.ProjectArgs{
    			ProjectId:      pulumi.String("my-project"),
    			Name:           pulumi.String("my-project"),
    			OrgId:          pulumi.String("123456789"),
    			DeletionPolicy: pulumi.String("DELETE"),
    		})
    		if err != nil {
    			return err
    		}
    		agentProjectService, err := projects.NewService(ctx, "agent_project", &projects.ServiceArgs{
    			Project:                  agentProject.ProjectId,
    			Service:                  pulumi.String("dialogflow.googleapis.com"),
    			DisableDependentServices: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		dialogflowServiceAccount, err := serviceaccount.NewAccount(ctx, "dialogflow_service_account", &serviceaccount.AccountArgs{
    			AccountId: pulumi.String("my-account"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = projects.NewIAMMember(ctx, "agent_create", &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, "basic_agent", &diagflow.AgentArgs{
    			Project:             agentProject.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, "full_intent", &diagflow.IntentArgs{
    			Project:       agentProject.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{
    				agentProject.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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var agentProject = new Gcp.Organizations.Project("agent_project", new()
        {
            ProjectId = "my-project",
            Name = "my-project",
            OrgId = "123456789",
            DeletionPolicy = "DELETE",
        });
    
        var agentProjectService = new Gcp.Projects.Service("agent_project", new()
        {
            Project = agentProject.ProjectId,
            ServiceName = "dialogflow.googleapis.com",
            DisableDependentServices = false,
        });
    
        var dialogflowServiceAccount = new Gcp.ServiceAccount.Account("dialogflow_service_account", new()
        {
            AccountId = "my-account",
        });
    
        var agentCreate = new Gcp.Projects.IAMMember("agent_create", new()
        {
            Project = agentProjectService.Project,
            Role = "roles/dialogflow.admin",
            Member = dialogflowServiceAccount.Email.Apply(email => $"serviceAccount:{email}"),
        });
    
        var basicAgent = new Gcp.Diagflow.Agent("basic_agent", new()
        {
            Project = agentProject.ProjectId,
            DisplayName = "example_agent",
            DefaultLanguageCode = "en",
            TimeZone = "America/New_York",
        });
    
        var fullIntent = new Gcp.Diagflow.Intent("full_intent", new()
        {
            Project = agentProject.ProjectId,
            DisplayName = "full-intent",
            WebhookState = "WEBHOOK_STATE_ENABLED",
            Priority = 1,
            IsFallback = false,
            MlDisabled = true,
            Action = "some_action",
            ResetContexts = true,
            InputContextNames = new[]
            {
                agentProject.ProjectId.Apply(projectId => $"projects/{projectId}/agent/sessions/-/contexts/some_id"),
            },
            Events = new[]
            {
                "some_event",
            },
            DefaultResponsePlatforms = new[]
            {
                "FACEBOOK",
                "SLACK",
            },
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                basicAgent,
            },
        });
    
    });
    
    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 agentProject = new Project("agentProject", ProjectArgs.builder()
                .projectId("my-project")
                .name("my-project")
                .orgId("123456789")
                .deletionPolicy("DELETE")
                .build());
    
            var agentProjectService = new Service("agentProjectService", ServiceArgs.builder()
                .project(agentProject.projectId())
                .service("dialogflow.googleapis.com")
                .disableDependentServices(false)
                .build());
    
            var dialogflowServiceAccount = new Account("dialogflowServiceAccount", AccountArgs.builder()
                .accountId("my-account")
                .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(agentProject.projectId())
                .displayName("example_agent")
                .defaultLanguageCode("en")
                .timeZone("America/New_York")
                .build());
    
            var fullIntent = new Intent("fullIntent", IntentArgs.builder()
                .project(agentProject.projectId())
                .displayName("full-intent")
                .webhookState("WEBHOOK_STATE_ENABLED")
                .priority(1)
                .isFallback(false)
                .mlDisabled(true)
                .action("some_action")
                .resetContexts(true)
                .inputContextNames(agentProject.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());
    
        }
    }
    
    resources:
      agentProject:
        type: gcp:organizations:Project
        name: agent_project
        properties:
          projectId: my-project
          name: my-project
          orgId: '123456789'
          deletionPolicy: DELETE
      agentProjectService:
        type: gcp:projects:Service
        name: agent_project
        properties:
          project: ${agentProject.projectId}
          service: dialogflow.googleapis.com
          disableDependentServices: false
      dialogflowServiceAccount:
        type: gcp:serviceaccount:Account
        name: dialogflow_service_account
        properties:
          accountId: my-account
      agentCreate:
        type: gcp:projects:IAMMember
        name: agent_create
        properties:
          project: ${agentProjectService.project}
          role: roles/dialogflow.admin
          member: serviceAccount:${dialogflowServiceAccount.email}
      basicAgent:
        type: gcp:diagflow:Agent
        name: basic_agent
        properties:
          project: ${agentProject.projectId}
          displayName: example_agent
          defaultLanguageCode: en
          timeZone: America/New_York
      fullIntent:
        type: gcp:diagflow:Intent
        name: full_intent
        properties:
          project: ${agentProject.projectId}
          displayName: full-intent
          webhookState: WEBHOOK_STATE_ENABLED
          priority: 1
          isFallback: false
          mlDisabled: true
          action: some_action
          resetContexts: true
          inputContextNames:
            - projects/${agentProject.projectId}/agent/sessions/-/contexts/some_id
          events:
            - some_event
          defaultResponsePlatforms:
            - FACEBOOK
            - SLACK
        options:
          dependson:
            - ${basicAgent}
    

    Create Intent Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Intent(name: string, args: IntentArgs, opts?: CustomResourceOptions);
    @overload
    def Intent(resource_name: str,
               args: IntentArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Intent(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               display_name: Optional[str] = None,
               action: Optional[str] = None,
               default_response_platforms: Optional[Sequence[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)
    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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var intentResource = new Gcp.Diagflow.Intent("intentResource", new()
    {
        DisplayName = "string",
        Action = "string",
        DefaultResponsePlatforms = new[]
        {
            "string",
        },
        Events = new[]
        {
            "string",
        },
        InputContextNames = new[]
        {
            "string",
        },
        IsFallback = false,
        MlDisabled = false,
        ParentFollowupIntentName = "string",
        Priority = 0,
        Project = "string",
        ResetContexts = false,
        WebhookState = "string",
    });
    
    example, err := diagflow.NewIntent(ctx, "intentResource", &diagflow.IntentArgs{
    	DisplayName: pulumi.String("string"),
    	Action:      pulumi.String("string"),
    	DefaultResponsePlatforms: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Events: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	InputContextNames: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	IsFallback:               pulumi.Bool(false),
    	MlDisabled:               pulumi.Bool(false),
    	ParentFollowupIntentName: pulumi.String("string"),
    	Priority:                 pulumi.Int(0),
    	Project:                  pulumi.String("string"),
    	ResetContexts:            pulumi.Bool(false),
    	WebhookState:             pulumi.String("string"),
    })
    
    var intentResource = new Intent("intentResource", IntentArgs.builder()
        .displayName("string")
        .action("string")
        .defaultResponsePlatforms("string")
        .events("string")
        .inputContextNames("string")
        .isFallback(false)
        .mlDisabled(false)
        .parentFollowupIntentName("string")
        .priority(0)
        .project("string")
        .resetContexts(false)
        .webhookState("string")
        .build());
    
    intent_resource = gcp.diagflow.Intent("intentResource",
        display_name="string",
        action="string",
        default_response_platforms=["string"],
        events=["string"],
        input_context_names=["string"],
        is_fallback=False,
        ml_disabled=False,
        parent_followup_intent_name="string",
        priority=0,
        project="string",
        reset_contexts=False,
        webhook_state="string")
    
    const intentResource = new gcp.diagflow.Intent("intentResource", {
        displayName: "string",
        action: "string",
        defaultResponsePlatforms: ["string"],
        events: ["string"],
        inputContextNames: ["string"],
        isFallback: false,
        mlDisabled: false,
        parentFollowupIntentName: "string",
        priority: 0,
        project: "string",
        resetContexts: false,
        webhookState: "string",
    });
    
    type: gcp:diagflow:Intent
    properties:
        action: string
        defaultResponsePlatforms:
            - string
        displayName: string
        events:
            - string
        inputContextNames:
            - string
        isFallback: false
        mlDisabled: false
        parentFollowupIntentName: string
        priority: 0
        project: string
        resetContexts: false
        webhookState: string
    

    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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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. Structure is documented below.
    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. Structure is documented below.
    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. Structure is documented below.
    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. Structure is documented below.
    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. Structure is documented below.
    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. Structure is documented below.
    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, 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<IntentFollowupIntentInfo>
    Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output. Structure is documented below.
    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, 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, 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. Structure is documented below.
    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, 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, 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<IntentFollowupIntentInfo>
    Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output. Structure is documented below.
    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, 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, 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 IntentFollowupIntentInfo[]
    Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output. Structure is documented below.
    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, 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, 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. Structure is documented below.
    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, 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, 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. Structure is documented below.
    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, WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING.

    Supporting Types

    IntentFollowupIntentInfo, IntentFollowupIntentInfoArgs

    FollowupIntentName string
    The unique identifier of the followup intent. Format: projects//agent/intents/.
    ParentFollowupIntentName string
    The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.
    FollowupIntentName string
    The unique identifier of the followup intent. Format: projects//agent/intents/.
    ParentFollowupIntentName string
    The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.
    followupIntentName String
    The unique identifier of the followup intent. Format: projects//agent/intents/.
    parentFollowupIntentName String
    The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.
    followupIntentName string
    The unique identifier of the followup intent. Format: projects//agent/intents/.
    parentFollowupIntentName string
    The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.
    followup_intent_name str
    The unique identifier of the followup 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/.
    followupIntentName String
    The unique identifier of the followup intent. Format: projects//agent/intents/.
    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:

    • {{name}}

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

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

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi