import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * Creates an intent in the specified agent. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). */ export declare class Intent extends pulumi.CustomResource { /** * Get an existing Intent resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): Intent; /** * Returns true if the given object is an instance of Intent. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Intent; readonly agentId: pulumi.Output; /** * Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters. */ readonly description: pulumi.Output; /** * The human-readable name of the intent, unique within the agent. */ readonly displayName: pulumi.Output; /** * 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. */ readonly isFallback: pulumi.Output; /** * 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. */ readonly labels: pulumi.Output<{ [key: string]: string; }>; /** * The language of the following fields in `intent`: * `Intent.training_phrases.parts.text` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used. */ readonly languageCode: pulumi.Output; readonly location: pulumi.Output; /** * The unique identifier of the intent. Required for the Intents.UpdateIntent method. Intents.CreateIntent populates the name automatically. Format: `projects//locations//agents//intents/`. */ readonly name: pulumi.Output; /** * The collection of parameters associated with the intent. */ readonly parameters: pulumi.Output; /** * 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. */ readonly priority: pulumi.Output; readonly project: pulumi.Output; /** * The collection of training phrases the agent is trained on to identify the intent. */ readonly trainingPhrases: pulumi.Output; /** * Create a Intent resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: IntentArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Intent resource. */ export interface IntentArgs { agentId: pulumi.Input; /** * Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters. */ description?: pulumi.Input; /** * The human-readable name of the intent, unique within the agent. */ displayName: pulumi.Input; /** * 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. */ isFallback?: pulumi.Input; /** * 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. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The language of the following fields in `intent`: * `Intent.training_phrases.parts.text` If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used. */ languageCode?: pulumi.Input; location?: pulumi.Input; /** * The unique identifier of the intent. Required for the Intents.UpdateIntent method. Intents.CreateIntent populates the name automatically. Format: `projects//locations//agents//intents/`. */ name?: pulumi.Input; /** * The collection of parameters associated with the intent. */ parameters?: pulumi.Input[]>; /** * 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. */ priority?: pulumi.Input; project?: pulumi.Input; /** * The collection of training phrases the agent is trained on to identify the intent. */ trainingPhrases?: pulumi.Input[]>; }