Agent Args
A Dialogflow agent is a virtual agent that handles conversations with your end-users. It is a natural language understanding module that understands the nuances of human language. Dialogflow translates end-user text or audio during a conversation to structured data that your apps and services can understand. You design and build a Dialogflow agent to handle the types of conversations required for your system. To get more information about Agent, see:
How-to Guides
Example Usage
Dialogflow Agent Full
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.diagflow.Agent;
import com.pulumi.gcp.diagflow.AgentArgs;
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 Agent("fullAgent", AgentArgs.builder()
.apiVersion("API_VERSION_V2_BETA_1")
.avatarUri("https://cloud.google.com/_static/images/cloud/icons/favicons/onecloud/super_cloud.png")
.classificationThreshold(0.3)
.defaultLanguageCode("en")
.description("Example description.")
.displayName("dialogflow-agent")
.enableLogging(true)
.matchMode("MATCH_MODE_ML_ONLY")
.supportedLanguageCodes(
"fr",
"de",
"es")
.tier("TIER_STANDARD")
.timeZone("America/New_York")
.build());
}
}
Import
Agent can be imported using any of these accepted formats:
$ pulumi import gcp:diagflow/agent:Agent default {{project}}
Constructors
Functions
Properties
To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a fallback intent will be triggered or, if there are no fallback intents defined, no intent will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
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 time zone of this agent from the time zone database, e.g., America/New_York, Europe/Paris.