Agent 日志

导出应用日志

导出应用的对话日志为 CSV 文件,支持自定义导出字段和筛选条件

post/core/app/logs/exportLogs

Request

  • Base URL: https://app.wenwen-ai.com/api
  • URL: https://app.wenwen-ai.com/api/core/app/logs/exportLogs
  • Auth: none declared

Request body

feedbackType'all' | 'has_feedback' | 'good' | 'bad'

反馈类型:all-全部记录,has_feedback-包含反馈,good-包含赞,bad-包含踩

unreadOnlyboolean

是否仅显示未读反馈(当 feedbackType 为 all 时忽略)

errorFilter'all' | 'has_error'

报错筛选:all-全部记录,has_error-仅看报错

appIdstring required

应用 ID

sourcesstring[]

对话来源筛选

tmbIdsstring[]

团队成员 ID 列表

outLinkUidsstring[]

外部用户 ID 列表

chatSearchstring

对话内容搜索关键词

titlestring required

标题

sourcesMapobject required

来源映射

logKeysstring[] required

日志键

Example request

{
  "feedbackType": "good",
  "errorFilter": "has_error",
  "appId": "68ad85a7463006c963799a05",
  "sources": [
    "api",
    "online"
  ],
  "tmbIds": [
    "tmb123",
    "tmb456"
  ],
  "outLinkUids": [
    "user123",
    "user456"
  ],
  "chatSearch": "hello",
  "title": "chat logs",
  "sourcesMap": {
    "api": {
      "label": "API"
    },
    "online": {
      "label": "在线"
    }
  },
  "logKeys": [
    "source",
    "createdTime"
  ]
}

Response

成功导出应用日志,返回 CSV 文件

Changes

No recorded changes to this operation across all 1 revision of this API.