SURUS AI icon

SURUS AI

Access to optimized SURUS AI nodes for specific tasks

Extract

AI-generated

Summary

Extract structured data from unstructured text using a defined JSON schema to specify the desired format.

Inputs

  • Text (required) — The unstructured text to extract structured data from.
  • JSON Schema (required) — A JSON schema defining the expected structure of the extracted data.
  • Simple Output — Flag to return only the main extracted content, simplifying the output by omitting additional API response details.

Output shape

A JSON object containing structured data extracted from the input text according to the provided JSON schema.

If 'Simple Output' is enabled, the node returns only the main extraction result under 'surus_output'. Otherwise, it returns the full API response. The output corresponds to the input item order.

Examples

Example 1: Extract a person's full name from text.

Provide input text with unstructured details and a JSON schema specifying a 'name' property of type string. Enable 'Simple Output' for simplified result.

Discussion