This prototype leverages a Webex bot to create a help request addressable by members of a different Webex Team's Space. Once the request is accepted, a 1-1 space between the requester and accepter is created. The bot uses Webex APIs, the webex_bot Python library, and Webex Cards.
Note: Custom cards can be used but the default cards target a Radiologist and Physician Assistant use case.
A typical bot workflow:
developer.webex.com
My Webex Apps
Create a New App
Create a Bot
to start the wizardAdd Bot
and you will be given an access tokengit clone https://github.com/gve-sw/gve_devnet_webex_bot_help_request
and open the directory of the root repository.pip3 install -r requirements.txt
config.py
parameters. These include: Bot Token, Bot Name, and the name of the Webex Help Space.
BOT_TOKEN = 'XXXXXXXX' BOT_NAME = 'Sample Bot' HELP_SPACE = 'Sample Help Space'
python3 bot.py
To use your bot, start a conversation by adding the bot to a 1-1 or Group space.
Send the string request
. Once the bot processes the message, it responds with a Webex card containing an optional field to specify details about the request.
Click the submit
button.
Once submitted, your bot will delete the card and post the request into the specified Help Space using a Webex card. The request card includes the requester name, optional request details, and a unique id.
To accept a request, click the accept
button.
Clicking the accept
button will create a 1-1 space with the requester and delete the card from the help space. The 1-1 space name follows the format '{Requester} - {Accepter} Help Request ({unique id})'. The bot leaves the space, and this space can be used to help the requester!
Provided under Cisco Sample Code License, for details see LICENSE
Our code of conduct is available here
See our contributing guidelines here
Please note: This script is meant for demo purposes only. All tools/ scripts in this repo are released for use "AS IS" without any warranties of any kind, including, but not limited to their installation, use, or performance. Any use of these scripts and tools is at your own risk. There is no guarantee that they have been through thorough testing in a comparable environment and we are not responsible for any damage or data loss incurred with their use.
You are responsible for reviewing and testing any scripts you run thoroughly before use in any non-testing environment.
Owner
Contributors
Categories
CollaborationCloud CollaborationProducts
WebexProgramming Languages
PythonLicense
Code Exchange Community
Get help, share code, and collaborate with other developers in the Code Exchange community.View Community