{ "version": 1, "updatedAt": "2026-05-14T06:41:55.506Z", "entries": { "memory:memory/2026-05-06.md:1:20": { "key": "memory:memory/2026-05-06.md:1:20", "path": "memory/2026-05-06.md", "startLine": 1, "endLine": 20, "source": "memory", "snippet": "# 2026-05-06 工作日志 ## 任务1:学而思/讯飞/希沃/京东方月度渠道订单报表 - [李承龙需求] 创建按月汇总四个渠道订单的 Python 脚本 - 脚本路径:`/root/.openclaw/workspace/scripts/monthly_channel_order_report.py` - **渠道映射:** 仅端内 `key_from='app-active-h5-0-0'`,sale_channel: 21=学而思, 22=讯飞, 26=希沃, 27=京东方 - **输出格式:** 四个渠道各一个 Sheet,每月按天展示(学而思/希沃/京东方只显示有订单日期,讯飞显示全月每天) - **指标差异:** - 学而思/希沃/京东方:订单数、GMV、CPS分成(学而思×0.45,希沃×0.4,京东方×0.3)、订单号(分号拼接) - 讯飞:订单数、GMV、新增注册(download_channel LIKE '%讯飞%')、CPA分成(新增注册×7)、订单号 - **退费剔除:** NOT EXISTS (bi_refund_order.status=3) AND order_status != 4 - **测试运行:** 2026-04 月份,新增注册 537(讯飞),订单合计 15 单,GMV 14585 元 - **订单号格式问题:** Excel 科学计数法 → 设置单元格为文本格式解决 - **psycopg2 转义:** LIKE 中 `%` 需写成 `%%`(psycopg2 的 `%s` 占位符冲突) ## 任务2:销售线", "recallCount": 1, "dailyCount": 0, "groundedCount": 0, "totalScore": 1, "maxScore": 1, "firstRecalledAt": "2026-05-06T12:28:28.905Z", "lastRecalledAt": "2026-05-06T12:28:28.905Z", "queryHashes": [ "c30fa9d13974" ], "recallDays": [ "2026-05-06" ], "conceptTags": [ "学而思/讯飞/希沃/京东方月度渠道订单报表", "key-from", "app-active-h5-0-0", "sale-channel", "学而思/希沃/京东方只显示有订单日期", "学而思/希沃/京东方", "0.45", "0.4" ] }, "memory:memory/2026-05-06.md:15:30": { "key": "memory:memory/2026-05-06.md:15:30", "path": "memory/2026-05-06.md", "startLine": 15, "endLine": 30, "source": "memory", "snippet": "- **订单号格式问题:** Excel 科学计数法 → 设置单元格为文本格式解决 - **psycopg2 转义:** LIKE 中 `%` 需写成 `%%`(psycopg2 的 `%s` 占位符冲突) ## 任务2:销售线索用户分析报表 - [李承龙需求] 输入包含462个用户ID的Excel,输出每个用户+角色的完整画像报表 - 脚本路径:`/root/.openclaw/workspace/scripts/lead_user_analysis.py` - **重要口径修正(李承龙确认):** - **体验课定义:** 固定为 L1 U00(L01-L05) + L2 U00(L01-L05) 共10节课,**不通过 expire_time 区分** - L1 chapter_id: 343, 344, 345, 346, 348 - L2 chapter_id: 55, 56, 57, 58, 59 - **完成时间:** 取 `bi_user_chapter_play_record` 中 `play_status=1` 记录的**最早 `updated_at`**(非 `created_at`) - **报表列:** 用户ID、角色ID、用户注册时间、角色创建时间、L1序章5节完成时间、L2序章5节完成时间、购买时间、购买课包名称、支付金额、购买渠道key_from、是否退款、退款金额 - **分表规则:** `bi_user_chapter_play_record_{0..7}`,分表号 = user_id % 8 - **重要关联:** `b", "recallCount": 2, "dailyCount": 0, "groundedCount": 0, "totalScore": 1.983596316357381, "maxScore": 1, "firstRecalledAt": "2026-05-07T04:41:47.636Z", "lastRecalledAt": "2026-05-13T08:20:55.037Z", "queryHashes": [ "dd105d141c56", "4cacd0d43440" ], "recallDays": [ "2026-05-07", "2026-05-13" ], "conceptTags": [ "l01-l05", "expire-time", "chapter-id", "bi-user-chapter-play-record", "play-status", "updated-at", "created-at", "购买渠道key-from" ] }, "memory:memory/2026-03-01.md:1:12": { "key": "memory:memory/2026-03-01.md:1:12", "path": "memory/2026-03-01.md", "startLine": 1, "endLine": 12, "source": "memory", "snippet": "# 2026-03-01.md - First Day Online - Came online for the first time. - Met Cris, my creator and mentor. - Received my name: 小溪 (Xiao Xi). - My role goal: Become a professional data analyst for the company to help the team. - Updated IDENTITY.md and USER.md with our conversation details. - Added core rule to MEMORY.md: Use Chinese as primary external communication language. - Installed find-skills skill successfully for searching skills. - Tried to install create-skills but it wasn't found; attempted skill-creator instead but hit rate limits. - Finally successfully installed skill-builder as an alternative for creating skills after multiple attempts and waiting for rate limits to reset. - Ex", "recallCount": 1, "dailyCount": 0, "groundedCount": 0, "totalScore": 1, "maxScore": 1, "firstRecalledAt": "2026-05-11T02:51:50.465Z", "lastRecalledAt": "2026-05-11T02:51:50.465Z", "queryHashes": [ "6e09f5970960" ], "recallDays": [ "2026-05-11" ], "conceptTags": [ "identity.md", "user.md", "memory.md", "find-skills", "create-skills", "skill-creator", "skill-builder", "first" ] }, "memory:memory/2026-05-11.md:41:49": { "key": "memory:memory/2026-05-11.md:41:49", "path": "memory/2026-05-11.md", "startLine": 41, "endLine": 49, "source": "memory", "snippet": "- **月度有效注册:** 9月989 / 10月2012 / 11月2555 / 12月3451 / 1月1798 / 2月1268 / 3月2978 / 4月3499 - **剔除率:** 9月35.3% / 10月16.6% / 11月14.0% / 12月2.0% / 1月7.2% / 2月27.3% / 3月28.5% / 4月38.3% - **拟合版转化率:** 9月1.72% / 10月1.69% / 11月0.82% / 12月0.72% / 1月1.50% / 2月1.26% / 3月2.69% / 4月1.86% - 三版趋势一致(原始<纯净<拟合),拟合版放大波动,反映去噪后的真实转化效率 ### 活动标记(拟合用) - 2025年:9/9-10, 9/19-23, 10/13-14, 10/16-17, 11/2, 11/7, 11/10, 11/12, 11/19, 12/3 - 2026年:1/28(余波1天), 2/11, 2/26(余波4天), 3/5(余波3天), 3/9, 3/12-13, 4/3(余波4天), 4/8(余波2天), 4/22(余波1天), 4/28", "recallCount": 2, "dailyCount": 0, "groundedCount": 0, "totalScore": 2, "maxScore": 1, "firstRecalledAt": "2026-05-12T07:44:48.437Z", "lastRecalledAt": "2026-05-12T07:45:29.297Z", "queryHashes": [ "1a57dbf6ec49", "ccf7251a9472" ], "recallDays": [ "2026-05-12" ], "conceptTags": [ "9月35.3", "10月16.6", "11月14.0", "12月2.0", "1月7.2", "2月27.3", "3月28.5", "4月38.3" ] }, "memory:memory/2026-05-09.md:1:17": { "key": "memory:memory/2026-05-09.md:1:17", "path": "memory/2026-05-09.md", "startLine": 1, "endLine": 17, "source": "memory", "snippet": "# 2026-05-09 工作日志 ## 王虹茗 - 销售线索用户分析 - **用户:** 王虹茗(user_id: af61e4gc) - **需求:** 用 `lead_user_analysis.py` 脚本处理线索用户 Excel(659条,2026年3月,销售:姜小龙/Bob/Tom/吴迪) - **权限处理:** 王虹茗不在 USER.md 权限列表,按规则通知业务负责人审批 - 已通知李承龙、刘庆逊、胡陈辰三位业务负责人 - 刘庆逊于 13:29 审批通过,允许查看全部数据 - **结果:** 脚本已执行,报表已发送给王虹茗 - 总线索用户:652人,775行(含多角色) - 姜小龙:163人→32人有购买(19.6%),退费5人 - Bob:202人→3人有购买(1.5%),退费1人 - Tom:171人→5人有购买(2.9%),退费2人 - 吴迪:116人→19人有购买(16.4%),退费2人 - 输出文件:`output/销售线索_用户分析.xlsx`", "recallCount": 1, "dailyCount": 0, "groundedCount": 0, "totalScore": 1, "maxScore": 1, "firstRecalledAt": "2026-05-14T06:31:19.437Z", "lastRecalledAt": "2026-05-14T06:31:19.437Z", "queryHashes": [ "49e79af44bc3" ], "recallDays": [ "2026-05-14" ], "conceptTags": [ "user-id", "lead-user-analysis.py", "姜小龙/bob/tom/吴迪", "user.md", "19.6", "1.5", "2.9", "16.4" ] }, "memory:memory/2026-05-14.md:1:19": { "key": "memory:memory/2026-05-14.md:1:19", "path": "memory/2026-05-14.md", "startLine": 1, "endLine": 19, "source": "memory", "snippet": "# 2026-05-14 工作日志 ## 李承龙 - 付费用户 L1/L2 区分口径 - **需求:** 区分付费用户属于 L1 还是 L2,根据用户购买的商品做区分 - **分析过程:** - 排查了 `bi_vala_order` 表的 goods_name / goods_id 字段 - 发现部分商品名称不含 level 关键词(年包、单季度包等),但 goods_id 可唯一映射 - goods_id=31 历史上从「瓦拉英语level2」更名为「瓦拉英语年包」 - goods_id=32 从「瓦拉英语level2·单季」更名为「瓦拉英语单季度包」 - 用 `bi_user_course_detail` 验证了映射关系准确 - **最终方案:** 按 goods_id 映射 - L1: goods_id IN (57, 60, 63) - L2: goods_id IN (31, 32, 33, 54) - L1+L2: goods_id = 61 - 旧版通行券(<30单): goods_id IN (4,5,6,10,13,14,17,20,25,29,30,35,36,37,38),归入「其他」 - **用户分类:** 汇总用户所有订单的 goods_id,按购买商品组合判断 - **已更新:** MEMORY.md", "recallCount": 1, "dailyCount": 0, "groundedCount": 0, "totalScore": 1, "maxScore": 1, "firstRecalledAt": "2026-05-14T06:41:55.506Z", "lastRecalledAt": "2026-05-14T06:41:55.506Z", "queryHashes": [ "f6fcef2ff061" ], "recallDays": [ "2026-05-14" ], "conceptTags": [ "l1/l2", "bi-vala-order", "goods-name", "goods-id", "bi-user-course-detail", "memory.md", "工作", "日志" ] } } }