FastGPT icon

FastGPT

AI智能客服平台

数据 → 获取单条数据详情

AI-generated

Summary

Fetches the full details of a single FastGPT knowledge-base data entry by its data ID, via a GET request to /core/dataset/data/detail.

Inputs

  • 数据ID (dataDetailId) (required) — ID of the data entry to look up. Sent as the id query parameter.
  • Request Options — Optional node settings: batching (items per batch, default 50, and interval in ms, default 1000), ignore SSL certificate issues, an HTTP proxy URL, and a timeout in ms (default 10000).

Output shape

The FastGPT API response for the requested data entry, returned as the node's output item. The exact fields come from FastGPT and are not defined in the node.

The node sends requests with ignoreHttpStatusErrors, then checks the response. It throws a NodeApiError if the HTTP status is 4xx or 5xx, or if the response body code is not 200. The error message is taken from the body message or the status message. The base URL comes from the fastGPTApi credential.

Examples

Example 1: Read one knowledge-base entry after listing data, to inspect its content.

Resource: 数据; Operation: 获取单条数据详情; 数据ID set to an expression such as {{$json.data.list[0]._id}} from a previous list step.

Example 2: Look up an entry on a self-hosted FastGPT server that uses a self-signed certificate.

数据ID set to a fixed ID; under Request Options, enable Ignore SSL Issues and raise Timeout if the server is slow.

Links

Discussion