WebexTools enable an Agent to interact with Cisco Webex, allowing it to send messages and list rooms.
The following example requires the webexpythonsdk
library and a Webex access token which can be obtained from Webex Developer Portal.
To get started with Webex:
Create a Webex Bot:
Get your access token:
Add the bot to Webex:
The following agent will list all spaces and send a message using Webex:
Parameter | Type | Default | Description |
---|---|---|---|
access_token | str | None | Webex access token for authentication. If not provided, uses WEBEX_ACCESS_TOKEN environment variable. |
send_message | bool | True | Enable sending messages to Webex spaces. |
list_rooms | bool | True | Enable listing Webex spaces/rooms. |
Function | Description |
---|---|
send_message | Sends a message to a Webex room. Parameters: room_id (str) for the target room, text (str) for the message. |
list_rooms | Lists all available Webex rooms/spaces with their details including ID, title, type, and visibility settings. |