成功的配置如下:
bash
{
"version": 1,
"jobs": [
{
"id": "115d6651-357e-4baa-84ee-3c1c18dc45c6",
"agentId": "main",
"sessionKey": "agent:main:wecom:direct:xxx",
"name": "晨会提醒",
"enabled": true,
"createdAtMs": 1773624591829,
"updatedAtMs": 1773624776065,
"schedule": {
"kind": "cron",
"expr": "0 10 * * *"
},
"sessionTarget": "isolated",
"wakeMode": "now",
"payload": {
"kind": "agentTurn",
"message": "⏰ 晨会时间到了!该开晨会了!"
},
"delivery": {
"mode": "announce",
"channel": "last"
},
"state": {
"nextRunAtMs": 1773626400000,
"lastRunAtMs": 1773624722113,
"lastRunStatus": "error",
"lastStatus": "error",
"lastDurationMs": 53952,
"lastDeliveryStatus": "unknown",
"consecutiveErrors": 2,
"lastError": "Delivering to 企业微信 requires target <userId|groupId>"
}
}
]
}
ControlUI报错,设定如下的内容:
bash
"controlUi": {
"allowedOrigins": [
"http://localhost:18789",
"http://127.0.0.1:18789",
"http://172.31.65.9:18789"
],
"allowInsecureAuth": true,
"dangerouslyDisableDeviceAuth": true
},