⚒️ Force AI to use a specific output format

15,941 views · ⚒️ Engineering

Description

This workflow is for anyone looking to automatically fetch, validate, and parse complex language-based queries into a structured format. Its unique capability lies in not only processing language but also fixing invalid outputs before structuring them.

Note that to use this template, you need to be on n8n version 1.19.4 or later.

🔗 Nodes Used

Basic LLM Chain, OpenAI Chat Model, Auto-fixing Output Parser, Structured Output Parser

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup