Skip to main content
Use WebexTools to list spaces and send messages from an agent.

Prerequisites

  1. Sign up for Webex Teams and go to the Webex Developer Portal
  • Create the Bot
    • Click in the top-right on your profile → My Webex Apps → Create a Bot.
    • Enter Bot Name, Username, Icon, and Description, then click Add Bot.
  • Get the Access Token
    • Copy the Access Token shown on the confirmation page (displayed once).
    • If lost, regenerate it via My Webex Apps → Edit Bot → Regenerate Access Token.
  1. Install dependencies: uv pip install agno openai webexpythonsdk
  2. Set the OPENAI_API_KEY and WEBEX_ACCESS_TOKEN environment variables
  3. Launch Webex and add your bot to a space like the Welcome space. Use the bot’s email address (e.g. test@webex.bot)

Run the Example

For details, see Webex cookbook.