Files
karuo-ai/运营中枢/scripts/aiye_im_bridge/config/channels.example.yaml

71 lines
3.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ──────────────────────────────────────────────
# 艾叶 IM Bridge 配置文件
# 复制为 channels.yaml 后按需修改
# ──────────────────────────────────────────────
# 卡若AI 网关连接
gateway:
url: "http://127.0.0.1:18080" # 卡若AI 网关地址
api_key: "" # 网关 API Key若网关启用鉴权
timeout: 60 # 请求超时秒数
# ── 通道配置 ──────────────────────────────────
channels:
# ╔═══════════════════════════════════╗
# ║ 个人微信Webhook 模式) ║
# ╚═══════════════════════════════════╝
# 需要微信中间件(存客宝/WeChatFerry/ComWeChatBot配合
# 中间件将消息 POST 到 /webhook/wechat_personal
wechat_personal:
enabled: false
# 中间件的回复接口(艾叶把 AI 回复 POST 到这里)
callback_url: "http://127.0.0.1:9000/api/send"
# ╔═══════════════════════════════════╗
# ║ 企业微信 ║
# ╚═══════════════════════════════════╝
# 在企业微信管理后台创建自建应用,配置回调 URL 为:
# http(s)://your-domain/webhook/wechat_work
wechat_work:
enabled: false
corp_id: "" # 企业 ID
agent_id: "" # 应用 AgentId
secret: "" # 应用 Secret
token: "" # 回调 Token
encoding_aes_key: "" # 回调 EncodingAESKey
# ╔═══════════════════════════════════╗
# ║ 飞书 ║
# ╚═══════════════════════════════════╝
# 在飞书开放平台创建应用,事件订阅地址:
# http(s)://your-domain/webhook/feishu
# 订阅事件: im.message.receive_v1
feishu:
enabled: false
app_id: "" # 飞书 App ID
app_secret: "" # 飞书 App Secret
verification_token: "" # 事件订阅验证 Token
encrypt_key: "" # 事件加密密钥(可选)
# ╔═══════════════════════════════════╗
# ║ WhatsApp (Cloud API) ║
# ╚═══════════════════════════════════╝
# 在 Meta 开发者后台配置 Webhook:
# http(s)://your-domain/webhook/whatsapp
whatsapp:
enabled: false
phone_number_id: "" # WhatsApp Business 电话号码 ID
access_token: "" # Graph API 长期令牌
verify_token: "aiye_whatsapp_verify" # Webhook 验证令牌
api_version: "v21.0"
# ╔═══════════════════════════════════╗
# ║ 个人网页聊天 ║
# ╚═══════════════════════════════════╝
# 默认启用,提供 /chat 网页 + REST API + WebSocket
web:
enabled: true
allowed_origins: ["*"]
# html_path: "" # 自定义聊天页面路径(可选)