77 lines
2.0 KiB
YAML
77 lines
2.0 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
|
|
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
|
|
|
|
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=
|