تخطَّ إلى المحتوى

Webex

The Webex provider integrates with Webex messaging. It supports:

  • Direct messages
  • Space (room) messages
  • Adaptive Cards
  • File attachments
  • @mentions
  • Webex account
  • Webex Developer access
  1. Create a Webex Bot

    Go to developer.webex.com:

    • Navigate to My Webex Apps → Create a Bot
    • Fill in bot details
    • Copy the Bot Access Token
  2. Create a Webhook

    The provider will create webhooks automatically, or create manually:

    • Go to Documentation → Webhooks API
    • Create webhook pointing to your endpoint
  3. Configure Provider

    answers.json
    {
    "messaging-webex": {
    "enabled": true,
    "public_base_url": "https://your-domain.ngrok-free.app",
    "api_base_url": "https://webexapis.com/v1",
    "webex_bot_token": "your-bot-access-token",
    "default_room_id": "optional-room-id",
    "default_to_person_email": "optional-person@example.com"
    }
    }
  4. Run Setup

    Terminal window
    gtc setup --answers answers.json ./my-bundle
OptionRequiredDescription
enabledYesEnable/disable provider
public_base_urlYesPublic URL for webhook
webex_bot_tokenYesBot access token
api_base_urlNoWebex API URL (default: https://webexapis.com/v1)
default_room_idNoDefault space/room for outbound messages
default_to_person_emailNoDefault person email for direct messages
- id: reply
type: reply
config:
message: "Hello! How can I help?"
- id: formatted
type: reply
config:
message: |
**Bold** *Italic*
- List item
[Link](https://example.com)

Webex Buttons and Cards use Adaptive Cards and currently document support for Adaptive Cards version 1.3 with Webex-specific limitations. Test cards in Webex, especially when using images, fallback behavior, or complex actions.

- id: card
type: adaptive-card
config:
card:
type: AdaptiveCard
version: "1.3"
body:
- type: TextBlock
text: "Welcome!"
- id: send_file
type: reply
config:
message: "Here's your document"
files:
- url: "https://example.com/doc.pdf"