Cx Agent Args
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:
How-to Guides
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
Properties
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.
The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
The human-readable name of the agent, unique within the location.
Indicates if automatic spell correction is enabled in detect intent requests.
Determines whether this agent should log conversation queries.
Name of the SecuritySettings reference for the agent. Format: projects/
Settings related to speech recognition. Structure is documented below.
The list of all languages supported by this agent (except for the default_language_code).
The time zone of this agent from the time zone database, e.g., America/New_York, Europe/Paris.