Bot Framework v4 echo bot using Webex Adapter sample.
This bot has been created using Bot Framework, it shows how to create a simple echo bot that connects with Webex to respond messages.
-
.NET Core SDK version 3.1
# determine dotnet version dotnet --version
-
Clone the repository
git clone https://github.com/Microsoft/botbuilder-samples.git
-
Connect the bot with Webex by following the instructions below.
-
Run the bot from a terminal or from Visual Studio, choose option A or B.
A) From a terminal, navigate to
samples/csharp_dotnetcore/62.webex-adapter
# run the bot dotnet run
B) Or from Visual Studio
- Launch Visual Studio
- File -> Open -> Project/Solution
- Navigate to
samples/csharp_dotnetcore/62.webex-adapter
folder - Select
WebexAdapterBot.csproj
file - Press F5 to run the project
-
Using Webex Teams, search your bot by the Bot Username in the contacts barTest and send a message.
Populate settings for Webex Access Token, Public Address, Secret and Webhook Name in appsettings.json file.
Instructions about how to create / configure a Webex bot app and where to obtain the values for the settings can be found in the documentation covering connecting a bot to Webex using the Webex adapter.
"WebexAccessToken": "",
"WebexPublicAddress": "",
"WebexSecret": "",
"WebexWebhookName": ""
To learn more about deploying a bot to Azure, see Deploy your bot to Azure for a complete list of deployment instructions.