FastGPT icon

FastGPT

AI智能客服平台

对话 → 清空应用历史记录

AI-generated

Summary

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 appId query 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 code is not 200. The error message comes from the response message or 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 }}.

Links

Discussion