跳转到内容

Webex

Webex provider 与 Cisco Webex Teams 集成。它支持:

  • 私信
  • Space(房间)消息
  • Adaptive Cards
  • 文件附件
  • @mentions
  • Webex 账号
  • Webex Developer 权限
  1. 创建 Webex Bot

    前往 developer.webex.com

    • 进入 My Webex Apps → Create a Bot
    • 填写 bot 信息
    • 复制 Bot Access Token
  2. 创建 Webhook

    provider 会自动创建 webhook,或者你也可以手动创建:

    • 前往 Documentation → Webhooks API
    • 创建指向你端点的 webhook
  3. 配置 Provider

    answers.json
    {
    "messaging-webex": {
    "enabled": true,
    "public_base_url": "https://your-domain.ngrok-free.app",
    "access_token": "your-bot-access-token"
    }
    }
  4. 运行设置

    Terminal window
    gtc setup --answers answers.json ./my-bundle
选项必填说明
enabled启用/禁用 provider
public_base_urlwebhook 的公网 URL
access_tokenBot access token
- 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)
- id: card
type: adaptive-card
config:
card:
type: AdaptiveCard
version: "1.2"
body:
- type: TextBlock
text: "Welcome!"
- id: send_file
type: reply
config:
message: "Here's your document"
files:
- url: "https://example.com/doc.pdf"