FastGPT icon

FastGPT

AI智能客服平台

对话 → 删除单个历史记录

AI-generated

Summary

Deletes a single chat history (conversation) of a FastGPT app by sending a DELETE request to /core/chat/history/delHistory with the app ID and chat ID as query parameters.

Inputs

  • 应用ID (delHistoryAppId) (required) — The FastGPT app ID that owns the chat history. Sent as the appId query parameter.
  • 历史记录ID (delHistoryChatId) (required) — The chatId of the conversation history to delete. Sent as the chatId query parameter.
  • Request Options — Optional node settings: batching (items per batch, interval in ms), ignore SSL issues, proxy URL, and request timeout (default 10000 ms).

Output shape

The parsed JSON response body from the FastGPT API for each input item, returned as the node's output.

Requests ignore HTTP status errors at the transport level, then a post-receive check throws a NodeApiError if the HTTP status is 4xx/5xx or the body's code is not 200. The error message is taken from the body's message. The exact success payload is not defined in the node source. The deletion is performed against the base URL from the fastGPTApi credentials.

Examples

Example 1: Clean up a finished support conversation after it has been archived elsewhere.

应用ID = your app's ID; 历史记录ID = {{ $json.chatId }} from the previous node.

Example 2: Delete a chat created by a test run of the 多模态对话 operation.

应用ID = the target app ID; 历史记录ID = the same chatId (e.g. n8n-chat-id) used in the chat call.

Links

Discussion