Structured Output Parser
ai.output_parser_structured · version 1.3 · AI sub-node
Makes the model answer with JSON matching a schema.
Ports
| Port | Kind | Label | Required | Max connections |
|---|---|---|---|---|
| input 0 | ai_languageModel | 1 | ||
| output 0 | ai_outputParser |
Credentials
This node uses no credentials.
Parameters
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
schemaType | options | "fromJson" | Schema Source. One of fromJson, manual. | ||
jsonSchemaExample | json | "{\n \"answer\": \"text\"\n}" | schemaType = fromJson | JSON Example. | |
inputSchema | json | schemaType = manual | JSON Schema. | ||
autoFix | boolean | false | Repair Invalid Output. Ask the connected model to repair output that does not match the schema. | ||
prompt | string | autoFix = true | Repair 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 type | Version range | Status | Fixtures |
|---|---|---|---|
@n8n/n8n-nodes-langchain.outputParserStructured | 1 | unverified |