Chat Refinement
AI-generatedSummary
Iteratively refine an existing n8n workflow by conversing with the AI, submitting messages that request specific improvements or changes to the workflow, which the node incorporates and returns as updated workflow JSON.
Inputs
- Previous Workflow — The current workflow JSON to refine; leave empty to start a new conversation.
- Conversation History — JSON array of previous messages exchanged during this chat-based refinement to maintain context.
- Your Message (required) — Text message describing the refinement or change you want to make to the workflow.
- Output Format — Choose how to receive the generated workflow: as JSON, as a downloadable .json file, or both formats.
- Advanced Options — Options to customize the refinement process, including whether to include example workflows, node details, creativity level (temperature), and workflow validation with auto-fix.
Output shape
An object containing the refined workflow JSON, updated conversation history, the original user message, usage details, and optionally a downloadable file representation of the workflow.
The output includes instructions for further iterative refinement and cost information. If Output Format includes 'file', the workflow JSON is also provided as a base64-encoded downloadable .json file. Conversation History must be preserved and fed back for multi-turn refinement.