聊天数据查询
pdd_chat_dataQuery Pinduoduo customer service chat records by agent, order, or product ID within allowed date ranges. Returns JSON data with message previews and statistics.
Instructions
按客服账号/订单号/商品ID 查询聊天记录(纯数据 JSON;时间跨度限制与后台一致:按客服/订单 ≤31 天、按商品 ≤7 天)。如需导出 Excel 文件,用 pdd-chat-export skill。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | cs=按客服/时间查全部会话;order=按订单号;goods=按商品ID | |
| shop | No | 店铺名(多店铺时指定,对应 config/shops.json 的键名;省略=默认店铺) | |
| mmsId | No | 客服账号 mmsId(mode=cs 可选,来自 pdd_chat_users) | |
| endDate | Yes | 结束日期 YYYY-MM-DD | |
| goodsId | No | 商品ID(mode=goods 必填) | |
| orderSn | No | 订单号(mode=order 必填) | |
| startDate | Yes | 开始日期 YYYY-MM-DD | |
| previewLimit | No | 返回消息预览条数(0=只返回统计) | |
| maxConversations | No | 最多查询多少个会话(防止失控) | |
| maxMessagesPerConv | No | 每个会话最多查询多少条消息,0=不限制 |