> ## Documentation Index
> Fetch the complete documentation index at: https://phidatainc-studio-tools-doc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Webex

> Use Webex with Agno agents.

Enable Agno agents to autonomously manage Webex spaces and messaging to streamline enterprise communication and workflow automation.

## Prerequisites

1. Sign up for Webex Teams and go to the Webex [Developer Portal](https://developer.webex.com/)

* 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.

2. Install dependencies: `uv pip install openai webexpythonsdk`
3. Set the WEBEX\_ACCESS\_TOKEN environment variable
4. Launch Webex and add your bot to a space like the Welcome space. Use the bot's email address (e.g. [test@webex.bot](mailto:test@webex.bot))

```python theme={null}

from agno.agent import Agent
from agno.tools.webex import WebexTools

# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------


agent = Agent(tools=[WebexTools()])

# List all space in Webex

# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    agent.print_response("List all space on our Webex", markdown=True)

    # Send a message to a Space in Webex
    agent.print_response(
        "Send a funny ice-breaking message to the webex Welcome space", markdown=True
    )
```

## Run the Example

```bash theme={null}
# Clone and setup repo
git clone https://github.com/agno-agi/agno.git
cd agno/cookbook/91_tools

# Create and activate virtual environment
./scripts/demo_setup.sh
source .venvs/demo/bin/activate

python webex_tools.py
```

For details, see [Webex cookbook](https://github.com/agno-agi/agno/blob/main/cookbook/91_tools/webex_tools.py).
