Cx Agent
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());
}
}
Content copied to clipboard
Import
Agent can be imported using any of these accepted formats
$ pulumi import gcp:diagflow/cxAgent:CxAgent default projects/{{project}}/locations/{{location}}/agents/{{name}}
Content copied to clipboard
$ pulumi import gcp:diagflow/cxAgent:CxAgent default {{project}}/{{location}}/{{name}}
Content copied to clipboard
$ pulumi import gcp:diagflow/cxAgent:CxAgent default {{location}}/{{name}}
Content copied to clipboard
Properties
Link copied to clipboard
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
Link copied to clipboard
The time zone of this agent from the time zone database, e.g., America/New_York, Europe/Paris.