mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-13 17:26:04 +00:00
Cloud/NAT deployments couldn't complete WeCom-family / Official Account / QQ Official setup because the trusted-IP (IP whitelist) value — the server's egress IPs — was nowhere visible in LangBot. - config.yaml: new system.outbound_ips list (env: SYSTEM__OUTBOUND_IPS, comma-separated), exposed via GET /api/v1/system/info - dynamic form: generic __system.*-named display-only fields resolved from systemContext (same namespace as show_if), one read-only row per value with a copy button, excluded from form state and emitted values; hidden entirely when the deployment provides no IPs - manifests: trusted-IP display field for wecom, wecomcs, wecombot, officialaccount, qqofficial Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
93 lines
3.3 KiB
YAML
93 lines
3.3 KiB
YAML
apiVersion: v1
|
||
kind: MessagePlatformAdapter
|
||
metadata:
|
||
name: wecomcs
|
||
label:
|
||
en_US: WeComCustomerService
|
||
zh_Hans: 企业微信客服
|
||
zh_Hant: 企業微信客服
|
||
description:
|
||
en_US: WeComCSAdapter
|
||
zh_Hans: 企业微信对外客服机器人,需要公网地址以接收消息推送,请查看文档了解使用方式
|
||
zh_Hant: 企業微信對外客服機器人,需要公網地址以接收訊息推送,請查看文件了解使用方式
|
||
icon: wecom.png
|
||
spec:
|
||
categories:
|
||
- china
|
||
help_links:
|
||
zh: https://link.langbot.app/zh/platforms/wecomcs
|
||
en: https://link.langbot.app/en/platforms/wecomcs
|
||
ja: https://link.langbot.app/ja/platforms/wecomcs
|
||
config:
|
||
- name: webhook_url
|
||
label:
|
||
en_US: Webhook Callback URL
|
||
zh_Hans: Webhook 回调地址
|
||
zh_Hant: Webhook 回調地址
|
||
description:
|
||
en_US: Copy this URL and paste it into your WeCom Customer Service webhook configuration
|
||
zh_Hans: 复制此地址并粘贴到企业微信客服的 Webhook 配置中
|
||
zh_Hant: 複製此地址並貼到企業微信客服的 Webhook 設定中
|
||
type: webhook-url
|
||
required: false
|
||
default: ""
|
||
- name: __system.outbound_ips
|
||
label:
|
||
en_US: Trusted IPs
|
||
zh_Hans: 企业可信 IP
|
||
zh_Hant: 企業可信 IP
|
||
description:
|
||
en_US: Add these outbound IPs of the LangBot server to the "Trusted Enterprise IPs" of WeChat Customer Service in the WeCom admin console
|
||
zh_Hans: 请将这些 LangBot 服务器的出网 IP 添加到企业微信管理后台微信客服的「企业可信 IP」中
|
||
zh_Hant: 請將這些 LangBot 伺服器的出網 IP 加入企業微信管理後台微信客服的「企業可信 IP」中
|
||
type: array[string]
|
||
required: false
|
||
default: []
|
||
- name: corpid
|
||
label:
|
||
en_US: Corpid
|
||
zh_Hans: 企业ID
|
||
zh_Hant: 企業ID
|
||
type: string
|
||
required: true
|
||
default: ""
|
||
- name: secret
|
||
label:
|
||
en_US: Secret
|
||
zh_Hans: 密钥
|
||
zh_Hant: 密鑰
|
||
type: string
|
||
required: true
|
||
default: ""
|
||
- name: token
|
||
label:
|
||
en_US: Token
|
||
zh_Hans: 令牌
|
||
zh_Hant: 令牌
|
||
type: string
|
||
required: true
|
||
default: ""
|
||
- name: EncodingAESKey
|
||
label:
|
||
en_US: EncodingAESKey
|
||
zh_Hans: 消息加解密密钥
|
||
zh_Hant: 訊息加解密密鑰
|
||
type: string
|
||
required: true
|
||
default: ""
|
||
- name: api_base_url
|
||
label:
|
||
en_US: API Base URL
|
||
zh_Hans: API 基础 URL
|
||
zh_Hant: API 基礎 URL
|
||
description:
|
||
en_US: API Base URL, used for accessing the WeCom API. If you are deploying in an internal network environment and accessing the WeCom Customer Service API through a reverse proxy, please fill in this item according to the documentation.
|
||
zh_Hans: 可选,若您部署在内网环境并通过反向代理访问企业微信 API,可根据文档修改此项
|
||
zh_Hant: 可選,若您部署在內網環境並透過反向代理存取企業微信 API,可根據文件修改此項
|
||
type: string
|
||
required: false
|
||
default: "https://qyapi.weixin.qq.com/cgi-bin"
|
||
execution:
|
||
python:
|
||
path: ./wecomcs.py
|
||
attr: WecomCSAdapter |