Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Structured Output Parser

ai.output_parser_structured · version 1.3 · AI sub-node

Makes the model answer with JSON matching a schema.

Ports

PortKindLabelRequiredMax connections
input 0ai_languageModel1
output 0ai_outputParser

Credentials

This node uses no credentials.

Parameters

NameTypeDefaultRequiredShown whenDescription
schemaTypeoptions"fromJson"Schema Source. One of fromJson, manual.
jsonSchemaExamplejson"{\n \"answer\": \"text\"\n}"schemaType = fromJsonJSON Example.
inputSchemajsonschemaType = manualJSON Schema.
autoFixbooleanfalseRepair Invalid Output. Ask the connected model to repair output that does not match the schema.
promptstringautoFix = trueRepair Prompt.

Import

Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.

Source typeVersion rangeStatusFixtures
@n8n/n8n-nodes-langchain.outputParserStructured1unverified