Actions37
- 对话 Actions
- 知识库 Actions
- 集合 Actions
- 数据 Actions
- 应用 Actions
对话 → 清空应用历史记录
AI-generatedSummary
Deletes all chat history records for a given FastGPT app by sending a DELETE request to /core/chat/history/clearHistories with the app ID as a query parameter.
Inputs
- 应用ID (clearHistoryAppId) (required) — The FastGPT App ID. It is sent as the
appIdquery parameter. Every chat history under this app is cleared. - Request Options — Optional node settings: batching (items per batch and interval in ms), ignore SSL certificate issues, HTTP proxy, and request timeout in ms (default 10000).
Output shape
The parsed JSON response body from the FastGPT API, returned as the node's output item for each input item.
Errors are thrown as a NodeApiError if the HTTP status is 4xx or 5xx, or if the response body's
codeis not 200. The error message comes from the responsemessageor the status message. The call is destructive and cannot be undone from the node. The exact success payload shape isn't defined in the source.
Examples
Example 1: Reset a support bot's API conversation history after a test run
Resource: 对话; Operation: 清空应用历史记录; 应用ID set to the bot's App ID, for example via an expression such as {{ $json.appId }}.