{
  "version": 1,
  "jobs": [
    {
      "id": "2073cd46-e64a-4304-a99e-a8b8a703fa54",
      "agentId": "main",
      "sessionKey": "agent:main:feishu:group:oc_d5ef8b1abf66842c28ef57e1658dc096",
      "name": "每日收款失败统计",
      "enabled": true,
      "createdAtMs": 1774023841911,
      "updatedAtMs": 1774060105638,
      "schedule": {
        "kind": "cron",
        "expr": "0 8 * * *",
        "tz": "Asia/Shanghai"
      },
      "sessionTarget": "isolated",
      "wakeMode": "now",
      "payload": {
        "kind": "agentTurn",
        "message": "执行以下任务：\n\n1. 搜索飞书群聊「益选通知群」(chat_id: oc_d5ef8b1abf66842c28ef57e1658dc096) 中关于「收款失败」的消息\n2. 时间范围：昨天夜里23:00到今天早上8:00（注意：当前时间是早上8点，所以查询范围是「昨天23:00到今天08:00」）\n3. 读取现有Excel文件：https://my.feishu.cn/sheets/MCn9szPGmh1N2it2W0pc6vsSnSb\n4. 判断逻辑：\n   - 如果没有收款失败数据 → 在群里只发一条消息：「收款失败统计 (昨天~今天)：无失败记录 ✅」\n   - 如果有失败数据 → 追加到Excel表（Sheet1，从第8行开始追加），然后在群里发消息：「收款失败统计 (昨天~今天)：共X条失败记录，已更新X条到Excel」\n5. Excel追加格式：序号自动生成（现有最大序号+1）、时间、支付方式、金额、备注（留空或填入备注）\n6. 注意：不需要统计成功的数据，只处理失败记录",
        "model": "minimax-portal/MiniMax-M2.5",
        "timeoutSeconds": 300
      },
      "delivery": {
        "mode": "announce",
        "channel": "feishu"
      },
      "state": {
        "nextRunAtMs": 1774137600000,
        "lastRunAtMs": 1774051200009,
        "lastRunStatus": "ok",
        "lastStatus": "ok",
        "lastDurationMs": 284604,
        "lastDelivered": true,
        "lastDeliveryStatus": "delivered",
        "consecutiveErrors": 0
      }
    },
    {
      "id": "07c52b1a-df78-4f06-a15f-45d22cab8402",
      "agentId": "main",
      "sessionKey": "agent:main:wecom:direct:houhuan",
      "name": "向量记忆每日备份",
      "enabled": true,
      "createdAtMs": 1774076047011,
      "updatedAtMs": 1774076047011,
      "schedule": {
        "kind": "cron",
        "expr": "0 3 * * *",
        "tz": "Asia/Shanghai"
      },
      "sessionTarget": "main",
      "wakeMode": "now",
      "payload": {
        "kind": "systemEvent",
        "text": "向量记忆系统自动备份"
      },
      "delivery": {
        "mode": "none"
      },
      "state": {
        "nextRunAtMs": 1774119600000
      }
    }
  ]
}