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

Auto-fixing Output Parser

ai.output_parser_autofixing · version 1 · AI sub-node

Repairs model output that another parser rejects by asking a model to correct it.

Ports

PortKindLabelRequiredMax connections
input 0ai_languageModelyes1
input 1ai_outputParseryes1
output 0ai_outputParser

Credentials

This node uses no credentials.

Parameters

NameTypeDefaultRequiredShown whenDescription
optionscollection
options.promptstring"The output below was supposed to follow these formatting instructions:\n---\n{instructions}\n---\n\nOutput that failed:\n---\n{completion}\n---\n\nProblem found:\n---\n{error}\n---\n\nRewrite the output so that it follows the instructions exactly. Reply with the corrected output only."Repair Prompt. Use {instructions}, {completion} and {error} as placeholders.

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.outputParserAutofixing1unverified