CxAgentArgs

data class CxAgentArgs(val avatarUri: Output<String>? = null, val defaultLanguageCode: Output<String>? = null, val description: Output<String>? = null, val displayName: Output<String>? = null, val enableSpellCorrection: Output<Boolean>? = null, val enableStackdriverLogging: Output<Boolean>? = null, val location: Output<String>? = null, val project: Output<String>? = null, val securitySettings: Output<String>? = null, val speechToTextSettings: Output<CxAgentSpeechToTextSettingsArgs>? = null, val supportedLanguageCodes: Output<List<String>>? = null, val timeZone: Output<String>? = null) : ConvertibleToJava<CxAgentArgs>

Agents are best described as Natural Language Understanding (NLU) modules that transform user requests into actionable data. You can include agents in your app, product, or service to determine user intent and respond to the user in a natural way. To get more information about Agent, see:

Example Usage

Dialogflowcx Agent Full

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.diagflow.CxAgent;
import com.pulumi.gcp.diagflow.CxAgentArgs;
import com.pulumi.gcp.diagflow.inputs.CxAgentSpeechToTextSettingsArgs;
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 fullAgent = new CxAgent("fullAgent", CxAgentArgs.builder()
.avatarUri("https://cloud.google.com/_static/images/cloud/icons/favicons/onecloud/super_cloud.png")
.defaultLanguageCode("en")
.description("Example description.")
.displayName("dialogflowcx-agent")
.enableSpellCorrection(true)
.enableStackdriverLogging(true)
.location("global")
.speechToTextSettings(CxAgentSpeechToTextSettingsArgs.builder()
.enableSpeechAdaptation(true)
.build())
.supportedLanguageCodes(
"fr",
"de",
"es")
.timeZone("America/New_York")
.build());
}
}

Import

Agent can be imported using any of these accepted formats

$ pulumi import gcp:diagflow/cxAgent:CxAgent default projects/{{project}}/locations/{{location}}/agents/{{name}}
$ pulumi import gcp:diagflow/cxAgent:CxAgent default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:diagflow/cxAgent:CxAgent default {{location}}/{{name}}

Constructors

Link copied to clipboard
constructor(avatarUri: Output<String>? = null, defaultLanguageCode: Output<String>? = null, description: Output<String>? = null, displayName: Output<String>? = null, enableSpellCorrection: Output<Boolean>? = null, enableStackdriverLogging: Output<Boolean>? = null, location: Output<String>? = null, project: Output<String>? = null, securitySettings: Output<String>? = null, speechToTextSettings: Output<CxAgentSpeechToTextSettingsArgs>? = null, supportedLanguageCodes: Output<List<String>>? = null, timeZone: Output<String>? = null)

Properties

Link copied to clipboard
val avatarUri: Output<String>? = null

The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted Web Demo integration.

Link copied to clipboard
val defaultLanguageCode: Output<String>? = null

The default language of the agent as a language tag. See Language Support for a list of the currently supported language codes. This field cannot be updated after creation.

Link copied to clipboard
val description: Output<String>? = null

The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.

Link copied to clipboard
val displayName: Output<String>? = null

The human-readable name of the agent, unique within the location.

Link copied to clipboard
val enableSpellCorrection: Output<Boolean>? = null

Indicates if automatic spell correction is enabled in detect intent requests.

Link copied to clipboard
val enableStackdriverLogging: Output<Boolean>? = null

Determines whether this agent should log conversation queries.

Link copied to clipboard
val location: Output<String>? = null

The name of the location this agent is located in.

Link copied to clipboard
val project: Output<String>? = null

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

Link copied to clipboard
val securitySettings: Output<String>? = null

Name of the SecuritySettings reference for the agent. Format: projects//locations//securitySettings/.

Link copied to clipboard

Settings related to speech recognition. Structure is documented below.

Link copied to clipboard
val supportedLanguageCodes: Output<List<String>>? = null

The list of all languages supported by this agent (except for the default_language_code).

Link copied to clipboard
val timeZone: Output<String>? = null

The time zone of this agent from the time zone database, e.g., America/New_York, Europe/Paris.

Functions

Link copied to clipboard
open override fun toJava(): CxAgentArgs