1. Packages
  2. Google Cloud Native
  3. API Docs
  4. dialogflow
  5. dialogflow/v3beta1
  6. getIntent

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.dialogflow/v3beta1.getIntent

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Retrieves the specified intent.

Using getIntent

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getIntent(args: GetIntentArgs, opts?: InvokeOptions): Promise<GetIntentResult>
function getIntentOutput(args: GetIntentOutputArgs, opts?: InvokeOptions): Output<GetIntentResult>
Copy
def get_intent(agent_id: Optional[str] = None,
               intent_id: Optional[str] = None,
               language_code: Optional[str] = None,
               location: Optional[str] = None,
               project: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetIntentResult
def get_intent_output(agent_id: Optional[pulumi.Input[str]] = None,
               intent_id: Optional[pulumi.Input[str]] = None,
               language_code: Optional[pulumi.Input[str]] = None,
               location: Optional[pulumi.Input[str]] = None,
               project: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetIntentResult]
Copy
func LookupIntent(ctx *Context, args *LookupIntentArgs, opts ...InvokeOption) (*LookupIntentResult, error)
func LookupIntentOutput(ctx *Context, args *LookupIntentOutputArgs, opts ...InvokeOption) LookupIntentResultOutput
Copy

> Note: This function is named LookupIntent in the Go SDK.

public static class GetIntent 
{
    public static Task<GetIntentResult> InvokeAsync(GetIntentArgs args, InvokeOptions? opts = null)
    public static Output<GetIntentResult> Invoke(GetIntentInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIntentResult> getIntent(GetIntentArgs args, InvokeOptions options)
public static Output<GetIntentResult> getIntent(GetIntentArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:dialogflow/v3beta1:getIntent
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AgentId This property is required. string
IntentId This property is required. string
Location This property is required. string
LanguageCode string
Project string
AgentId This property is required. string
IntentId This property is required. string
Location This property is required. string
LanguageCode string
Project string
agentId This property is required. String
intentId This property is required. String
location This property is required. String
languageCode String
project String
agentId This property is required. string
intentId This property is required. string
location This property is required. string
languageCode string
project string
agent_id This property is required. str
intent_id This property is required. str
location This property is required. str
language_code str
project str
agentId This property is required. String
intentId This property is required. String
location This property is required. String
languageCode String
project String

getIntent Result

The following output properties are available:

Description string
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
DisplayName string
The human-readable name of the intent, unique within the agent.
IsFallback bool
Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event.
Labels Dictionary<string, string>
The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys-contextual" means the intent is a contextual intent.
Name string
The unique identifier of the intent. Required for the Intents.UpdateIntent method. Intents.CreateIntent populates the name automatically. Format: projects//locations//agents//intents/.
Parameters List<Pulumi.GoogleNative.Dialogflow.V3Beta1.Outputs.GoogleCloudDialogflowCxV3beta1IntentParameterResponse>
The collection of parameters associated with the intent.
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.
TrainingPhrases List<Pulumi.GoogleNative.Dialogflow.V3Beta1.Outputs.GoogleCloudDialogflowCxV3beta1IntentTrainingPhraseResponse>
The collection of training phrases the agent is trained on to identify the intent.
Description string
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
DisplayName string
The human-readable name of the intent, unique within the agent.
IsFallback bool
Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event.
Labels map[string]string
The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys-contextual" means the intent is a contextual intent.
Name string
The unique identifier of the intent. Required for the Intents.UpdateIntent method. Intents.CreateIntent populates the name automatically. Format: projects//locations//agents//intents/.
Parameters []GoogleCloudDialogflowCxV3beta1IntentParameterResponse
The collection of parameters associated with the intent.
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.
TrainingPhrases []GoogleCloudDialogflowCxV3beta1IntentTrainingPhraseResponse
The collection of training phrases the agent is trained on to identify the intent.
description String
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
displayName String
The human-readable name of the intent, unique within the agent.
isFallback Boolean
Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event.
labels Map<String,String>
The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys-contextual" means the intent is a contextual intent.
name String
The unique identifier of the intent. Required for the Intents.UpdateIntent method. Intents.CreateIntent populates the name automatically. Format: projects//locations//agents//intents/.
parameters List<GoogleCloudDialogflowCxV3beta1IntentParameterResponse>
The collection of parameters associated with the intent.
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.
trainingPhrases List<GoogleCloudDialogflowCxV3beta1IntentTrainingPhraseResponse>
The collection of training phrases the agent is trained on to identify the intent.
description string
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
displayName string
The human-readable name of the intent, unique within the agent.
isFallback boolean
Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event.
labels {[key: string]: string}
The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys-contextual" means the intent is a contextual intent.
name string
The unique identifier of the intent. Required for the Intents.UpdateIntent method. Intents.CreateIntent populates the name automatically. Format: projects//locations//agents//intents/.
parameters GoogleCloudDialogflowCxV3beta1IntentParameterResponse[]
The collection of parameters associated with the intent.
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.
trainingPhrases GoogleCloudDialogflowCxV3beta1IntentTrainingPhraseResponse[]
The collection of training phrases the agent is trained on to identify the intent.
description str
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
display_name str
The human-readable name of the intent, unique within the agent.
is_fallback bool
Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event.
labels Mapping[str, str]
The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys-contextual" means the intent is a contextual intent.
name str
The unique identifier of the intent. Required for the Intents.UpdateIntent method. Intents.CreateIntent populates the name automatically. Format: projects//locations//agents//intents/.
parameters Sequence[GoogleCloudDialogflowCxV3beta1IntentParameterResponse]
The collection of parameters associated with the intent.
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.
training_phrases Sequence[GoogleCloudDialogflowCxV3beta1IntentTrainingPhraseResponse]
The collection of training phrases the agent is trained on to identify the intent.
description String
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
displayName String
The human-readable name of the intent, unique within the agent.
isFallback Boolean
Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event.
labels Map<String>
The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys-contextual" means the intent is a contextual intent.
name String
The unique identifier of the intent. Required for the Intents.UpdateIntent method. Intents.CreateIntent populates the name automatically. Format: projects//locations//agents//intents/.
parameters List<Property Map>
The collection of parameters associated with the intent.
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.
trainingPhrases List<Property Map>
The collection of training phrases the agent is trained on to identify the intent.

Supporting Types

GoogleCloudDialogflowCxV3beta1IntentParameterResponse

EntityType This property is required. string
The entity type of the parameter. Format: projects/-/locations/-/agents/-/entityTypes/ for system entity types (for example, projects/-/locations/-/agents/-/entityTypes/sys.date), or projects//locations//agents//entityTypes/ for developer entity types.
IsList This property is required. bool
Indicates whether the parameter represents a list of values.
Redact This property is required. bool
Indicates whether the parameter content should be redacted in log. If redaction is enabled, the parameter content will be replaced by parameter name during logging. Note: the parameter content is subject to redaction if either parameter level redaction or entity type level redaction is enabled.
EntityType This property is required. string
The entity type of the parameter. Format: projects/-/locations/-/agents/-/entityTypes/ for system entity types (for example, projects/-/locations/-/agents/-/entityTypes/sys.date), or projects//locations//agents//entityTypes/ for developer entity types.
IsList This property is required. bool
Indicates whether the parameter represents a list of values.
Redact This property is required. bool
Indicates whether the parameter content should be redacted in log. If redaction is enabled, the parameter content will be replaced by parameter name during logging. Note: the parameter content is subject to redaction if either parameter level redaction or entity type level redaction is enabled.
entityType This property is required. String
The entity type of the parameter. Format: projects/-/locations/-/agents/-/entityTypes/ for system entity types (for example, projects/-/locations/-/agents/-/entityTypes/sys.date), or projects//locations//agents//entityTypes/ for developer entity types.
isList This property is required. Boolean
Indicates whether the parameter represents a list of values.
redact This property is required. Boolean
Indicates whether the parameter content should be redacted in log. If redaction is enabled, the parameter content will be replaced by parameter name during logging. Note: the parameter content is subject to redaction if either parameter level redaction or entity type level redaction is enabled.
entityType This property is required. string
The entity type of the parameter. Format: projects/-/locations/-/agents/-/entityTypes/ for system entity types (for example, projects/-/locations/-/agents/-/entityTypes/sys.date), or projects//locations//agents//entityTypes/ for developer entity types.
isList This property is required. boolean
Indicates whether the parameter represents a list of values.
redact This property is required. boolean
Indicates whether the parameter content should be redacted in log. If redaction is enabled, the parameter content will be replaced by parameter name during logging. Note: the parameter content is subject to redaction if either parameter level redaction or entity type level redaction is enabled.
entity_type This property is required. str
The entity type of the parameter. Format: projects/-/locations/-/agents/-/entityTypes/ for system entity types (for example, projects/-/locations/-/agents/-/entityTypes/sys.date), or projects//locations//agents//entityTypes/ for developer entity types.
is_list This property is required. bool
Indicates whether the parameter represents a list of values.
redact This property is required. bool
Indicates whether the parameter content should be redacted in log. If redaction is enabled, the parameter content will be replaced by parameter name during logging. Note: the parameter content is subject to redaction if either parameter level redaction or entity type level redaction is enabled.
entityType This property is required. String
The entity type of the parameter. Format: projects/-/locations/-/agents/-/entityTypes/ for system entity types (for example, projects/-/locations/-/agents/-/entityTypes/sys.date), or projects//locations//agents//entityTypes/ for developer entity types.
isList This property is required. Boolean
Indicates whether the parameter represents a list of values.
redact This property is required. Boolean
Indicates whether the parameter content should be redacted in log. If redaction is enabled, the parameter content will be replaced by parameter name during logging. Note: the parameter content is subject to redaction if either parameter level redaction or entity type level redaction is enabled.

GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePartResponse

ParameterId This property is required. string
The parameter used to annotate this part of the training phrase. This field is required for annotated parts of the training phrase.
Text This property is required. string
The text for this part.
ParameterId This property is required. string
The parameter used to annotate this part of the training phrase. This field is required for annotated parts of the training phrase.
Text This property is required. string
The text for this part.
parameterId This property is required. String
The parameter used to annotate this part of the training phrase. This field is required for annotated parts of the training phrase.
text This property is required. String
The text for this part.
parameterId This property is required. string
The parameter used to annotate this part of the training phrase. This field is required for annotated parts of the training phrase.
text This property is required. string
The text for this part.
parameter_id This property is required. str
The parameter used to annotate this part of the training phrase. This field is required for annotated parts of the training phrase.
text This property is required. str
The text for this part.
parameterId This property is required. String
The parameter used to annotate this part of the training phrase. This field is required for annotated parts of the training phrase.
text This property is required. String
The text for this part.

GoogleCloudDialogflowCxV3beta1IntentTrainingPhraseResponse

Parts This property is required. List<Pulumi.GoogleNative.Dialogflow.V3Beta1.Inputs.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePartResponse>
The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - Part.text is set to a part of the phrase that has no parameters. - Part.text is set to a part of the phrase that you want to annotate, and the parameter_id field is set.
RepeatCount This property is required. int
Indicates how many times this example was added to the intent.
Parts This property is required. []GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePartResponse
The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - Part.text is set to a part of the phrase that has no parameters. - Part.text is set to a part of the phrase that you want to annotate, and the parameter_id field is set.
RepeatCount This property is required. int
Indicates how many times this example was added to the intent.
parts This property is required. List<GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePartResponse>
The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - Part.text is set to a part of the phrase that has no parameters. - Part.text is set to a part of the phrase that you want to annotate, and the parameter_id field is set.
repeatCount This property is required. Integer
Indicates how many times this example was added to the intent.
parts This property is required. GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePartResponse[]
The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - Part.text is set to a part of the phrase that has no parameters. - Part.text is set to a part of the phrase that you want to annotate, and the parameter_id field is set.
repeatCount This property is required. number
Indicates how many times this example was added to the intent.
parts This property is required. Sequence[GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePartResponse]
The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - Part.text is set to a part of the phrase that has no parameters. - Part.text is set to a part of the phrase that you want to annotate, and the parameter_id field is set.
repeat_count This property is required. int
Indicates how many times this example was added to the intent.
parts This property is required. List<Property Map>
The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. Note: The API does not automatically annotate training phrases like the Dialogflow Console does. Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated. If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set. If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways: - Part.text is set to a part of the phrase that has no parameters. - Part.text is set to a part of the phrase that you want to annotate, and the parameter_id field is set.
repeatCount This property is required. Number
Indicates how many times this example was added to the intent.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi