Skip to content

Instantly share code, notes, and snippets.

@mattnorris
Created September 11, 2019 21:10
Show Gist options
  • Save mattnorris/edde1193774c6de05fca5fdd55cc31d3 to your computer and use it in GitHub Desktop.
Save mattnorris/edde1193774c6de05fca5fdd55cc31d3 to your computer and use it in GitHub Desktop.
Build a Webex Teams bot 🤖

Build

Botkit & Webex

Follow Botkit's instructions to create a Webex Teams bot. (During this tutorial, you will create bot credentials at Webex for Developers and remix https://glitch.com/~botkit-cisco-webex-teams to create a hosted bot.)

Glitch

After creating a hosted bot on glitch.com, edit its .env file to look like this:

access_token="{bot-access-token from https://developer.webex.com}"
public_address="{hosted-bot-instance, e.g., https://mattnorri-sidebar-bot.glitch.me}"
secret="{any secret of *your* choosing, e.g., keno-redolent-fare-city}"

The secret is one of your own choosing used to validate payloads. Although a functional bot does not require validating payloads, it is a good practice, so Glitch requires a secret.

Install

  • Open Webex Teams.
  • Create a space.
  • Add the bot to the space by searching for its email address.

Run

After creating a space with the bot, type it a message in that space by "@mentioning" it.

Additional references

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment