Prerequisites
The following example requires thewebexpythonsdk library and a Webex access token which can be obtained from Webex Developer Portal.
To get started with Webex:
-
Create a Webex Bot:
- Go to the Developer Portal
- Navigate to My Webex Apps → Create a Bot
- Fill in the bot details and click Add Bot
-
Get your access token:
- Copy the token shown after bot creation
- Or regenerate via My Webex Apps → Edit Bot
- Set as WEBEX_ACCESS_TOKEN environment variable
-
Add the bot to Webex:
- Launch Webex and add the bot to a space
- Use the bot’s email (e.g. test@webex.bot)
Example
The following agent will list all spaces and send a message using Webex:cookbook/14_tools/webex_tool.py
Toolkit Params
Toolkit Functions
Developer Resources
- View Tools