FastGPT icon

FastGPT

AI智能客服平台

对话 → 点踩/取消点踩

AI-generated

Summary

Marks a FastGPT chat record as disliked, or clears an existing dislike, by POSTing to /core/chat/feedback/updateUserFeedback. Sending a value in the dislike field sets the dislike, and leaving it empty clears it.

Inputs

  • 应用ID (required) — FastGPT App ID. Sent as body field appId.
  • 历史记录ID (required) — The chatId of the conversation. Sent as body field chatId.
  • 记录ID (required) — The dataId of the specific chat record to rate. Sent as body field dataId.
  • 点踩信息 — Dislike text (e.g. "yes"), sent as userBadFeedback. Fill it in to dislike; leave it empty to cancel the dislike.
  • Request Options — Node settings: batching (items per batch and interval), ignore SSL issues, proxy, and timeout (default 10000 ms).

Output shape

The parsed JSON response body from the FastGPT API, one result per input item.

The node throws 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's message field. The exact success payload shape is not defined in the node source. Because the node uses the declarative routing style, an empty 点踩信息 field is likely omitted from the request, which is what triggers the cancel behavior.

Examples

Example 1: Record a thumbs-down after a user rates an answer poorly

Set 应用ID, 历史记录ID and 记录ID from the chat data, and set 点踩信息 to "yes".

Example 2: Undo a previous dislike

Provide the same 应用ID, 历史记录ID and 记录ID, and leave 点踩信息 empty.

Links

Discussion