Home

Awesome

Webex Teams Chatbot examples in Node.js

Interested in creating your own Webex Teams Chatbots ? Go through the examples below.

If you feel inspired, run your own version of these bots. Simply take the step-by-step tutorials at DevNet: Run a Webex Teams bot locally.

Then, pick a template that suits your scenario, and customize it.

Note that these bot samples leverage the node-sparkbot Chatbot framework.

Also, if you're new to Webex Teams API, note that DevNet provides a full learning track: Learning track.

inspect

Provides instant access to Webex Teams technical data (such as the space id, or the email of a space participant).

Features illustrated by this example:

This bot can be run as is with either a Developer or a Bot access token

Invite inspect@webex.bot to meet the bot.

roomId

Fetches the identifier of the space in which this bot has just been added, pushes the roomId via a direct message, and leaves the inquired space right away.

Features illustrated by this example:

Invite roomid@webex.io to meet the bot.

room-stats

Computes stats for the space it is invoked from.

Features illustrated by this example:

Note that this webhook must be run with a personal access token (from a fake Webex Teams account), because the bot must be able to fetch all messages from spaces, not only those for which bot is mentionned.

Invite stats@chatbot.land to meet the bot.

events

Tells you about upcoming DevNet events.

Features illustrated by this example:

Invite CiscoDevNet@webex.bot to meet the bot.

helloworld

A simple template to start from.

Features illustrated by this example:

This bot can be run as is with either a Developer or a Bot access token