mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
51f9be82f8
* docs: document assistant link deflection and thread transcript endpoint * fix: correct link deflection anchor in assistant thread page --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
---
|
||
title: "获取 AI 助手会话线程"
|
||
openapi: /zh/analytics.openapi.json GET /v1/analytics/{projectId}/assistant/threads/{threadId}
|
||
keywords: ["analytics", "assistant", "thread", "transcript", "export", "AI"]
|
||
---
|
||
|
||
<div id="usage">
|
||
## 用法
|
||
</div>
|
||
|
||
使用此端点以 JSON 格式获取某个 AI 助手会话的完整消息转录。响应包含用户与 AI 助手之间按顺序排列的消息列表,每条消息都带有 ID、角色、内容和时间戳。
|
||
|
||
常见用途:
|
||
|
||
- 当用户从 AI 助手联系支持时,将会话转录附加到工单。
|
||
- 为审查、质量保证或离线分析重建特定会话。
|
||
|
||
<div id="getting-a-thread-id">
|
||
## 获取 thread ID
|
||
</div>
|
||
|
||
你可以通过以下任一来源获取 `threadId`:
|
||
|
||
- [获取 AI 助手会话](/zh/api/analytics/assistant-conversations) 返回的任一行的 `id` 字段。
|
||
- 当 AI 助手通过[链接转接](/zh/assistant/configure#deflect-to-a-support-link)将用户引导到你的支持平台时,Mintlify 追加到支持 URL 上的 `threadId` 查询参数。
|
||
|
||
## 速率限制
|
||
|
||
此端点每个组织每小时允许 100 次请求。所有 analytics 端点共享此限制。
|