Show / Hide Table of Contents

Namespace Pulumi.Gcp.Diagflow

Classes

Agent

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:

  • API documentation
  • How-to Guides
  • Official Documentation

Example Usage - Dialogflow Agent Full

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var fullAgent = new Gcp.Diagflow.Agent("fullAgent", new Gcp.Diagflow.AgentArgs
    {
        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",
    });
}

}

AgentArgs

AgentState

EntityType

Represents an entity type. Entity types serve as a tool for extracting parameter values from natural language queries.

To get more information about EntityType, see:

  • API documentation
  • How-to Guides
  • Official Documentation

Example Usage - Dialogflow Entity Type Basic

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var basicAgent = new Gcp.Diagflow.Agent("basicAgent", new Gcp.Diagflow.AgentArgs
    {
        DisplayName = "example_agent",
        DefaultLanguageCode = "en",
        TimeZone = "America/New_York",
    });
    var basicEntityType = new Gcp.Diagflow.EntityType("basicEntityType", new Gcp.Diagflow.EntityTypeArgs
    {
        DisplayName = "",
        Kind = "KIND_MAP",
        Entities = 
        {
            new Gcp.Diagflow.Inputs.EntityTypeEntityArgs
            {
                Value = "value1",
                Synonyms = 
                {
                    "synonym1",
                    "synonym2",
                },
            },
            new Gcp.Diagflow.Inputs.EntityTypeEntityArgs
            {
                Value = "value2",
                Synonyms = 
                {
                    "synonym3",
                    "synonym4",
                },
            },
        },
    });
}

}

EntityTypeArgs

EntityTypeState

Intent

Represents a Dialogflow intent. Intents convert a number of user expressions or patterns into an action. An action is an extraction of a user command or sentence semantics.

To get more information about Intent, see:

  • API documentation
  • How-to Guides
  • Official Documentation

Example Usage - Dialogflow Intent Basic

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var basicAgent = new Gcp.Diagflow.Agent("basicAgent", new Gcp.Diagflow.AgentArgs
    {
        DisplayName = "example_agent",
        DefaultLanguageCode = "en",
        TimeZone = "America/New_York",
    });
    var basicIntent = new Gcp.Diagflow.Intent("basicIntent", new Gcp.Diagflow.IntentArgs
    {
        DisplayName = "basic-intent",
    });
}

}

IntentArgs

IntentState

Back to top Copyright 2016-2020, Pulumi Corporation.