Webex
Ringkasan
Section titled “Ringkasan”Provider Webex terintegrasi dengan Cisco Webex Teams. Provider ini mendukung:
- Direct message
- Pesan space (room)
- Adaptive Cards
- Lampiran file
- @mention
Prasyarat
Section titled “Prasyarat”- Akun Webex
- Akses Webex Developer
Penyiapan
Section titled “Penyiapan”-
Buat Webex Bot
Buka developer.webex.com:
- Navigasikan ke My Webex Apps → Create a Bot
- Isi detail bot
- Salin Bot Access Token
-
Buat Webhook
Provider akan membuat webhook secara otomatis, atau buat secara manual:
- Buka Documentation → Webhooks API
- Buat webhook yang mengarah ke endpoint Anda
-
Konfigurasikan Provider
answers.json {"messaging-webex": {"enabled": true,"public_base_url": "https://your-domain.ngrok-free.app","access_token": "your-bot-access-token"}} -
Jalankan Setup
Terminal window gtc setup --answers answers.json ./my-bundle
Opsi Konfigurasi
Section titled “Opsi Konfigurasi”| Opsi | Wajib | Deskripsi |
|---|---|---|
enabled | Ya | Aktifkan/nonaktifkan provider |
public_base_url | Ya | URL publik untuk webhook |
access_token | Ya | Bot access token |
Pesan Teks
Section titled “Pesan Teks”- id: reply type: reply config: message: "Hello! How can I help?"Markdown
Section titled “Markdown”- id: formatted type: reply config: message: | **Bold** *Italic* - List item [Link](https://example.com)Adaptive Cards
Section titled “Adaptive Cards”- id: card type: adaptive-card config: card: type: AdaptiveCard version: "1.2" body: - type: TextBlock text: "Welcome!"Lampiran File
Section titled “Lampiran File”- id: send_file type: reply config: message: "Here's your document" files: - url: "https://example.com/doc.pdf"