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.
-
Follow the instructions in the root README.
-
Enable APIs for your project. Click here to visit Cloud Platform Console and enable the Dialogflow API.
-
(Optional) Import sample Dialogflow agent using these instructions
-
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
- See CONTRIBUTING.md
- See LICENSE
- See TESTING.md