Skip to main content

WebEx Bot that generates adaptive cards to a WebEx Room

Project description

pyWebExMessage - WebEx Bot that generates adaptive cards to a WebEx Room

Examples

Running the Bot (Questions)

Run the bot

Output

Run the bot

Getting Started with CLUS_2022 WebEx Message Room Bot

As a first time speaker I thought using WebEx to expand the interactivity and longevity of my sessions I wrote this bot. I wanted to share with other Speakers in case they wanted to use it for their sessions.

To get started with CLUS_2022 WebEx Bot, follow the steps below:

Create A Room for Your Session

In WebEx create and customize a room for your session Create a WebEx Space

Get a 24-hour token and Room ID

Visit the following developer.webex.com URL to get the room ID: [List_Rooms](https://developer.webex.com/docs/api/v1/rooms/list

Get a 24-hour token

Click the copy button to obtain a 24-hour token. This token will be used to access the room. Keep it safe and secure. I recommending using environment variables to store the token so you do not have to input it everytime you run the bot. Create a WebEx Space

Get the Room ID

Next get the room ID for the room you created. You need this to pass messages into the room with the bot. You can get the room ID in the browser directly or with a tool like Postman.

In the browser

Click Run Get Rooms - Run

Find your room Get Rooms - Find your Room

In Postman

After you have the token and Rooms URL you can use Postman to get your rooms as well. Make a new GET request to the rooms URL. Specify Bearer token as the Authorization Type and paste in your token. Save this request if you would like in a Collection for reuse.

Setup Postman

Find Your Room

Installing the bot

To install the bot there are a few simple steps:

Setup a virtual environment

Ubuntu Linux
The following instructions are based on Windows WSL2 and Ubuntu however any flavour of Linux will work with possibly slightly different commands.
Confirm Python 3 is installed
$ python3 -V
Python 3.9.10
Create and activate a virtual environment
$ sudo apt install python3-venv
$ python3 -m venv message_room
$ source message_room/bin/activate
(message_room)$

Install the bot

(message_room)$pip install 

Windows

Confirm Python 3.9 is installed

Download Python

Create and activate a virtual environment

C:\>python3 -m venv message_room
C:\>message_room\Scripts\activate
(message_room) C:\>

Install the requirements

(message_room)$pip install 

Using the bot

Run the bot as an interactive session

(message_room)$ cd CLUS_2022
(message_room)~/CLUS_2022$ python3 message_room.py

The form questions:

Question 1 - What is the roomID?
Question 2 - What is the token?
Question 3 - What is the title of the session?
Question 4 - What is the description of the session?
Question 5 - Where is the session?
Question 6 - What day is the session?
Question 7 - What time is the session?
Question 8 - Who are the speakers?
Question 9 - URL of the session or any other URL?
Question 10 - A label for the URL button?

Environment variables

Every question can be stored as a variable in the environment. This is useful if you want to reuse the same question in multiple messages. export ROOMID= export TOKEN= export TITLE=<title> export DESCRIPTION= export LOCATION= export DATE= export TIME= export SPEAKERS= export URL= export URL_LABEL=<url_label>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyWebExMessage-1.0.0.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

pyWebExMessage-1.0.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file pyWebExMessage-1.0.0.tar.gz.

File metadata

  • Download URL: pyWebExMessage-1.0.0.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.3 Linux/5.4.72-microsoft-standard-WSL2

File hashes

Hashes for pyWebExMessage-1.0.0.tar.gz
Algorithm Hash digest
SHA256 03e71640852bfbd3fac848ebce9852568691a14f7b18b5b142b2102b40b3b85b
MD5 8140b3e02903afdd3dba4ce6518d7692
BLAKE2b-256 95a93cd99a7b3b50ce99f5810436eb716cef5259e01d77bcfff5ab50905d2701

See more details on using hashes here.

File details

Details for the file pyWebExMessage-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyWebExMessage-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.3 Linux/5.4.72-microsoft-standard-WSL2

File hashes

Hashes for pyWebExMessage-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b509ced5dadabdaa6c90ea7977293db022bd1a9a86dd7e8ab19f804fd3914e7
MD5 64663297ad5307f33c129f2871b37dc9
BLAKE2b-256 d761c81fcabd4080a5d3c960849c5b0260e08ea67c06efdba08a95806698d8ec

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page