Skip to content

Latest commit

 

History

History
 
 

README.md

Webex Adapter

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.

Prerequisites

  • .NET Core SDK version 3.1

    # determine dotnet version
    dotnet --version

To try this sample

  • Clone the repository

    git clone https://github.com/BotBuilderCommunity/botbuilder-community-dotnet.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 botbuilder-community-dotnet/samples/Webex Adapter Sample

    # run the bot
    dotnet run

    B) Or from Visual Studio

    • Launch Visual Studio
    • File -> Open -> Project/Solution
    • Navigate to botbuilder-community-dotnet/samples/Webex Adapter Sample folder
    • Select Webex Adapter Sample.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.

Connect the bot with Webex

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": ""

Deploy the bot to Azure

To learn more about deploying a bot to Azure, see Deploy your bot to Azure for a complete list of deployment instructions.

Further reading