Skip to content

ratneshkumarcs/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.NET Dialogflow Enterprise Edition Samples

A collection of samples that demonstrate how to call the Dialogflow Enterprise Edition API from C#.

This sample requires .NET Core 2.0 or later. That means using Visual Studio 2017, or the command line. Visual Studio 2015 users can use this older sample.

Build and Run

  1. Follow the instructions in the root README.

  2. Enable APIs for your project. Click here to visit Cloud Platform Console and enable the Dialogflow API.

  3. (Optional) Import sample Dialogflow agent using these instructions

  4. From a Powershell command line, run the samples:

    PS C:\...\dotnet-docs-samples\dialogflow\api\DialogflowSamples> dotnet restore
    PS C:\...\dotnet-docs-samples\dialogflow\api\DialogflowSamples> dotnet run
    DialogflowSamples 0.0.0.0
    Copyright (C) 1 author
    
      contexts:create                Create new Context
    
      contexts:list                  Print list of entities for given Context
    
      contexts:delete                Delete specified Context
    
      intents:create                 Create new Intent
    
      intents:list                   Print list of entities for given Intent
    
      intents:delete                 Delete specified Intent
    
      entities:create                Create new entity type
    
      entities:list                  Print list of entities for given EntityType
    
      entities:delete                Delete specified EntityType
    
      entity-types:create            Create new entity type
    
      entity-types:list              Print list of all entity types
    
      entity-types:delete            Delete specified EntityType
    
      session-entity-types:create    Create new session entity type
    
      session-entity-types:list      Print list of all session entity types
    
      session-entity-types:delete    Delete specified SessionEntityType
    
      help                           Display more information on a specific command.
    
      version                        Display version information.
    
    PS C:\...DialogflowSamples> dotnet run entity-types:list --projectId "MY-PROJECT-ID"
    EntityType name: projects/rebecca-gcp/agent/entityTypes/9e399c95-10f4-48f3-a419-9d4aab7c6721
    EntityType display name: room
    Number of entities: 3
    Entity values:
    A
    B
    C
    

Contributing changes

Licensing

Testing

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published