96 lines
2.8 KiB
YAML
96 lines
2.8 KiB
YAML
version: 1
|
|
kind: platform-infra-wechat-archive
|
|
|
|
metadata:
|
|
id: wechat-baidu-archive
|
|
owner: unidesk
|
|
relatedIssues:
|
|
- 313
|
|
|
|
target:
|
|
id: G14
|
|
route: G14:k3s
|
|
namespace: platform-infra
|
|
|
|
langbot:
|
|
configRef: config/platform-infra/langbot.yaml
|
|
publicBaseUrl: https://langbot.pikapython.com
|
|
expectedAdapter: openclaw-weixin
|
|
callbackPath: /callback/command
|
|
readOnlyRecord:
|
|
enabled: true
|
|
mode: webhook-skip-pipeline
|
|
webhookName: UniDesk WeChat Archive Read Only
|
|
webhookDescription: Archive LangBot/OpenClaw inbound messages and return skip_pipeline=true so personal WeChat never receives automated replies.
|
|
discardPipelineUuid: __discard__
|
|
pipeline:
|
|
name: UniDesk WeChat Baidu Archive
|
|
description: Forward WeChat/OpenClaw messages to the UniDesk n8n archive workflow.
|
|
runner: n8n-service-api
|
|
outputKey: response
|
|
timeoutSeconds: 120
|
|
notes:
|
|
- LangBot receives WeChat/OpenClaw messages and forwards archive events to the n8n workflow webhook.
|
|
- Credentials for real WeChat channels are bound in LangBot runtime and are not stored in this YAML.
|
|
|
|
n8n:
|
|
configRef: config/platform-infra/n8n.yaml
|
|
publicBaseUrl: https://n8n.pikapython.com
|
|
workflow:
|
|
name: UniDesk WeChat Baidu Archive
|
|
id: unidesk-wechat-baidu-archive
|
|
webhookPath: unidesk-wechat-baidu-archive
|
|
active: true
|
|
timezone: Asia/Shanghai
|
|
|
|
archiveCallback:
|
|
publicUrl: http://74.48.78.17:18081/webhooks/wechat-archive
|
|
secretRoot: /root/unidesk/.state/secrets
|
|
tokenSourceRef: platform-infra/wechat-archive.env
|
|
tokenKey: UNIDESK_WECHAT_ARCHIVE_TOKEN
|
|
timeoutMs: 90000
|
|
|
|
baiduNetdisk:
|
|
serviceId: baidu-netdisk
|
|
proxyMode: backend-core-microservice-proxy
|
|
configRef: config.json#microservices.baidu-netdisk
|
|
staging:
|
|
hostRoot: /root/unidesk/.state/baidu-netdisk/staging
|
|
containerRoot: /data/staging
|
|
outboxDir: wechat-archive/outbox
|
|
pullDir: wechat-archive/pulls
|
|
archive:
|
|
remoteRoot: /UniDesk/WeChatArchive
|
|
timezone: Asia/Shanghai
|
|
textExtension: txt
|
|
imageExtension: png
|
|
pathTemplate: "{{remoteRoot}}/{{date}}/{{conversationId}}/{{messageId}}.{{extension}}"
|
|
maxInlineBytes: 10485760
|
|
|
|
messageTypes:
|
|
text:
|
|
enabled: true
|
|
contentField: text
|
|
mediaMode: none
|
|
image:
|
|
enabled: true
|
|
contentField: media.dataBase64
|
|
mediaMode: base64
|
|
filenameField: media.filename
|
|
mimeTypeField: media.mimeType
|
|
|
|
validate:
|
|
timeoutMs: 120000
|
|
pollIntervalMs: 1000
|
|
fixtures:
|
|
text:
|
|
conversationId: unidesk-validate
|
|
senderId: cli-smoke
|
|
text: UniDesk WeChat archive validation text fixture.
|
|
image:
|
|
conversationId: unidesk-validate
|
|
senderId: cli-smoke
|
|
filename: pixel.png
|
|
mimeType: image/png
|
|
dataBase64: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+/p9sAAAAASUVORK5CYII=
|