gcp.diagflow.Intent
Explore with Pulumi AI
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:
- API documentation
- How-to Guides
Example Usage
Dialogflow Intent Basic
using System.Collections.Generic;
using System.Linq;
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 System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var agentProjectProject = new Gcp.Organizations.Project("agentProjectProject", new()
{
ProjectId = "my-project",
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 = "my-account",
});
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("my-project"),
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("my-account"),
})
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("my-project")
.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("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(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="my-project",
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="my-account")
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: "my-project",
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: "my-account"});
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: my-project
orgId: '123456789'
agentProjectService:
type: gcp:projects:Service
properties:
project: ${agentProjectProject.projectId}
service: dialogflow.googleapis.com
disableDependentServices: false
dialogflowServiceAccount:
type: gcp:serviceAccount:Account
properties:
accountId: my-account
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:
- Display
Name 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.
- Default
Response List<string>Platforms 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.
- Input
Context List<string>Names 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 stringIntent Name 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.
- Reset
Contexts bool Indicates whether to delete all contexts in the current session when this intent is matched.
- Webhook
State 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 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.
- Default
Response []stringPlatforms 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.
- Input
Context []stringNames 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 stringIntent Name 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.
- Reset
Contexts bool Indicates whether to delete all contexts in the current session when this intent is matched.
- Webhook
State 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 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.
- default
Response List<String>Platforms 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.
- input
Context List<String>Names The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.
- is
Fallback Boolean Indicates whether this is a fallback intent.
- ml
Disabled 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.
- parent
Followup StringIntent Name 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.
- reset
Contexts Boolean Indicates whether to delete all contexts in the current session when this intent is matched.
- webhook
State 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 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.
- default
Response string[]Platforms 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.
- input
Context string[]Names The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.
- is
Fallback boolean Indicates whether this is a fallback intent.
- ml
Disabled 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.
- parent
Followup stringIntent Name 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.
- reset
Contexts boolean Indicates whether to delete all contexts in the current session when this intent is matched.
- webhook
State 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_ Sequence[str]platforms 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_ Sequence[str]names 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_ strintent_ name 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
.
- display
Name 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.
- default
Response List<String>Platforms 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.
- input
Context List<String>Names The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.
- is
Fallback Boolean Indicates whether this is a fallback intent.
- ml
Disabled 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.
- parent
Followup StringIntent Name 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.
- reset
Contexts Boolean Indicates whether to delete all contexts in the current session when this intent is matched.
- webhook
State 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:
- Followup
Intent List<IntentInfos Followup Intent Info> 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/.
- Root
Followup stringIntent Name 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 []IntentInfos Followup Intent Info 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/.
- Root
Followup stringIntent Name 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 List<IntentInfos Followup Intent Info> 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/.
- root
Followup StringIntent Name 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 IntentInfos Followup Intent Info[] 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/.
- root
Followup stringIntent Name 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_ Sequence[Intentinfos Followup Intent Info] 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_ strintent_ name 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 List<Property Map>Infos 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/.
- root
Followup StringIntent Name 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.
- Action string
The name of the action associated with the intent. Note: The action name must not contain whitespaces.
- Default
Response List<string>Platforms 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 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.
- Followup
Intent List<IntentInfos Followup Intent Info> 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 List<string>Names 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 string
The unique identifier of this intent. Format: projects//agent/intents/.
- Parent
Followup stringIntent Name 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.
- Reset
Contexts bool Indicates whether to delete all contexts in the current session when this intent is matched.
- Root
Followup stringIntent Name 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 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.
- Default
Response []stringPlatforms 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 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.
- Followup
Intent []IntentInfos Followup Intent Info Args 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 []stringNames 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 string
The unique identifier of this intent. Format: projects//agent/intents/.
- Parent
Followup stringIntent Name 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.
- Reset
Contexts bool Indicates whether to delete all contexts in the current session when this intent is matched.
- Root
Followup stringIntent Name 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 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.
- default
Response List<String>Platforms 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 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.
- followup
Intent List<IntentInfos Followup Intent Info> 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 List<String>Names The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.
- is
Fallback Boolean Indicates whether this is a fallback intent.
- ml
Disabled 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/.
- parent
Followup StringIntent Name 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.
- reset
Contexts Boolean Indicates whether to delete all contexts in the current session when this intent is matched.
- root
Followup StringIntent Name 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 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.
- default
Response string[]Platforms 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 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.
- followup
Intent IntentInfos Followup Intent Info[] 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 string[]Names The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.
- is
Fallback boolean Indicates whether this is a fallback intent.
- ml
Disabled 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/.
- parent
Followup stringIntent Name 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.
- reset
Contexts boolean Indicates whether to delete all contexts in the current session when this intent is matched.
- root
Followup stringIntent Name 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 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_ Sequence[str]platforms 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_ Sequence[Intentinfos Followup Intent Info Args] 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_ Sequence[str]names 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_ strintent_ name 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_ strintent_ name 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.
- default
Response List<String>Platforms 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 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.
- followup
Intent List<Property Map>Infos 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 List<String>Names The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.
- is
Fallback Boolean Indicates whether this is a fallback intent.
- ml
Disabled 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/.
- parent
Followup StringIntent Name 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.
- reset
Contexts Boolean Indicates whether to delete all contexts in the current session when this intent is matched.
- root
Followup StringIntent Name 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 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
- Followup
Intent stringName The unique identifier of the followup intent. Format: projects//agent/intents/.
- Parent
Followup stringIntent Name The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.
- Followup
Intent stringName The unique identifier of the followup intent. Format: projects//agent/intents/.
- Parent
Followup stringIntent Name The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.
- followup
Intent StringName The unique identifier of the followup intent. Format: projects//agent/intents/.
- parent
Followup StringIntent Name The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.
- followup
Intent stringName The unique identifier of the followup intent. Format: projects//agent/intents/.
- parent
Followup stringIntent Name The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.
- followup_
intent_ strname The unique identifier of the followup intent. Format: projects//agent/intents/.
- parent_
followup_ strintent_ name The unique identifier of the parent intent in the chain of followup intents. Format: projects//agent/intents/.
- followup
Intent StringName The unique identifier of the followup intent. Format: projects//agent/intents/.
- parent
Followup StringIntent Name 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
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
google-beta
Terraform Provider.