Overview
Automatically detect and fix common workflow configuration errors. Preview fixes before applying them or apply immediately for rapid error resolution.Endpoint
Request Parameters
Workflow ID to analyze and fixExample:
"wf_abc123"Whether to apply fixes to the workflow
false(default) - Preview mode: shows available fixes without applyingtrue- Apply mode: applies fixes and updates workflow
Specific fix types to apply (omit for all fixes)Available Types:
expression-format- Fix n8n expression syntax (missing=prefix)typeversion-correction- Correct invalid typeVersion valueserror-output-config- Fix error output configurationsnode-type-correction- Correct malformed node type nameswebhook-missing-path- Add missing webhook pathstypeversion-upgrade- Upgrade nodes to latest supported versionsversion-migration- Provide migration guidance for breaking changes
["expression-format", "typeversion-correction"]Minimum confidence level for applying fixesLevels:
low- Apply all fixes (including experimental)medium- Apply medium and high confidence fixes (recommended)high- Only apply high confidence fixes (safest)
Maximum number of fixes to apply (1-100)Prevents excessive changes in a single operation.
Response
Operation success status
Auto-fix results
Fix Types
Expression Format Fixes
expression-format
Fixes:
- Missing
=prefix on expressions (e.g.,{{ $json }}→={{ $json }}) - Extra whitespace around expressions
- Malformed expression delimiters
Type Version Fixes
typeversion-correction
Fixes:
- Invalid typeVersion values (e.g.,
"1"→1) - Missing typeVersion (sets to 1)
- TypeVersion higher than supported (downgrades)
typeversion-upgrade
Fixes:
- Upgrades nodes to latest supported typeVersion
- Applies smart migrations (preserves parameters)
- Handles breaking changes gracefully
Node Type Fixes
node-type-correction
Fixes:
- SHORT form to FULL form (e.g.,
nodes-base.webhook→n8n-nodes-base.webhook) - Missing package prefixes
- Incorrect package names
Webhook Fixes
webhook-missing-path
Fixes:
- Adds custom webhook paths when missing
- Generates human-readable paths from workflow name
- Ensures path uniqueness
Configuration Fixes
error-output-config
Fixes:
- Missing error output configurations
- Incorrect
continueOnFailsettings - Error handling metadata
Migration Guidance
version-migration
Provides:
- Migration guidance for breaking changes
- Parameter mapping documentation
- Manual steps required
Examples
Response Examples
Auto-Fix Workflow
Review Fixes
Examine the
fixes array to understand changes- Check
confidencelevels - Review
beforeandaftervalues - Assess impact on workflow logic
Confidence Levels
High Confidence
Safe to Apply:
- Expression format fixes
- Type corrections
- Node type format
- Missing required fields
Medium Confidence
Review Recommended:
- Webhook path generation
- Version upgrades (non-breaking)
- Error handling config
- Optional parameters
Low Confidence
Requires Review:
- Complex migrations
- Breaking version changes
- Ambiguous configurations
- Experimental fixes
Limitations
Best Practices
Use Cases
- Template Deployment
- Version Upgrades
- Bulk Cleanup
- Migration
Fix issues after deploying n8n.io templates:
Error Handling
Cause: Workflow has no auto-fixable issuesResolution: Check validation errors for manual fixes needed
Cause: Invalid workflow IDResolution: Verify ID with
n8n_list_workflowsCause: Fixes could not be applied (workflow became invalid)Resolution: Review fixes and apply manually with
n8n_update_partial_workflowCause: Workflow still invalid after applying fixesResolution: Use automatic rollback (version restored) and fix issues manually
Performance
Auto-Fix Performance:
- Preview mode: ~500ms for typical workflow
- Apply mode: ~2-3 seconds (includes validation + backup + update)
- Large workflows (50+ nodes): May take up to 5 seconds
- Version upgrades: Additional 1-2 seconds per node upgraded
Related Endpoints
- Validate Workflow - Identify issues before auto-fix
- Update Partial Workflow - Manual fixes for complex issues
- Get Workflow - Review workflow after fixes
- Workflow Versions - Rollback if fixes cause issues