> ## Documentation Index
> Fetch the complete documentation index at: https://kiro.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Webex

> Chat with Crew from Cisco Webex. One bot token, outbound WebSocket, no public URL needed. DM-only with deny-by-default email allowlist.

Crew connects to Webex over an outbound WebSocket — no public URL, no webhooks. Create a bot on the Webex developer portal, paste one token, and you're talking. Replies land with a live status placeholder while the agent works.

## Setup

### From the dashboard (recommended)

1. Create a bot at [developer.webex.com](https://developer.webex.com) — My Webex Apps → Create a New App → Create a Bot. Copy the **Bot access token**.
2. Open **Settings → Messaging Channels → Webex** in the dashboard
3. Paste the bot token
4. Add your Webex email to the **Allowed emails** list
5. Click **Save** — the gateway restarts and connects

The status badge turns green when connected. Search for your bot's username in Webex and send it a direct message.

### From the CLI

```bash
# Save token to ~/.kiro/crew/.env
echo "WEBEX_BOT_TOKEN=YmFzZTY0…" >> ~/.kiro/crew/.env
```

In `~/.kiro/crew/config.json`:

```json
{
  "webex": {
    "enabled": true,
    "allowed_emails": ["you@example.com"]
  }
}
```

Then: `kirocrew restart`

## Who can reach it

- **Deny-by-default** — an empty `allowed_emails` list rejects everyone
- **Direct messages only** — the bot ignores group spaces (even from allowed users)
- Tool output never leaks into a room

Anyone in an org can message a Webex bot, so add only your own email(s).

## Commands

| Command | Effect |
|---|---|
| `/new` | Start a fresh conversation |
| `/compact` | Compress context |
| `/help` | List commands |

Messages sent while a reply is in progress are folded into the running turn.

## Tool approval

With interactive approval mode, tools that need approval are **denied by default** — Webex has no approve/deny buttons. Use the dashboard for sessions that need interactive tool approval, or set `agent.approval_mode: "auto"`.

## Configuration

| Key | Default | Purpose |
|---|---|---|
| `webex.enabled` | `false` | Turns the channel on |
| `webex.allowed_emails` | `[]` | Webex emails allowed (empty = nobody) |
| `webex.soft_threshold_pct` | `80` | Suggest `/compact` past this usage |
| `webex.hard_threshold_pct` | `95` | Force-compact past this |
| `webex.bot_token` | `""` | Token fallback if `WEBEX_BOT_TOKEN` isn't set |

Prefer the `WEBEX_BOT_TOKEN` env var over `bot_token`.

## Troubleshooting

| Problem | Fix |
|---|---|
| No reply | Your email isn't in `allowed_emails` or `enabled` is `false` |
| No `Webex channel started` in logs | Token isn't set or is invalid |
| Group-space messages ignored | By design — DM the bot directly |
