This console app shows the minimum code required to connect customized client to an existing virtual agent.
-
.NET Core SDK version 2.1
# determine dotnet version dotnet --version
-
Update following settings in
BotConnectorApp\App.config-
Set value for
BotNameto name of the bot to connect -
Update
BotIdandBotTenantIdas follows:To retrieve your bot's bot ID and tenant ID, click on left side pane's Manage, click Channels and click on the Azure Bot Service channel that you need to connect to. Copy and save the bot ID and tenant ID value by clicking Copy.
-
Update
EndConversationMessageif needed
-
-
Run
BotConnectorAppfrom a terminal# change into project folder cd BotConnectorApp # run the bot dotnet run -
Run
BotConnectorAppfrom Visual Studio- Launch Visual Studio
- File -> Open -> Project/Solution
- Navigate to
BotConnectorAppfolder and selectBotConnectorApp.csprojfile - Press
F5to run the project
- Power Virtual Agents Bot *to be updated once formal doc url determined
- Power Virtual Agents - connect bot to custom application *to be updated once formal doc url determined