Overview
Performs comprehensive validation of n8n workflows including structure, node configurations, connections, and expressions. This is a three-layer validation system that catches errors before deployment. Performance: Moderate (100-500ms depending on workflow size)Validation Layers
Structure Validation
Validates workflow structure, node definitions, and metadata
Node Validation
Validates individual node configurations with multiple profiles
Connection Validation
Validates node connections and data flow
Expression Validation
Validates n8n expression syntax and references
AI Tool Validation
Validates AI Agent tool connections and configurations
Operator Structure
Validates filter operators (binary vs unary, singleValue requirements)
Parameters
The complete workflow JSON to validate.Must include:
nodes: Array of node objectsconnections: Object mapping node connections
Optional validation settings.
Response
Whether the workflow is valid (no errors)
Validation summary statistics
Array of error objects
Array of warning objects
Array of improvement suggestions (strings)
Examples
Response Example (Valid Workflow)
Response Example (Invalid Workflow)
Validation Checks
Structure Validation
Workflow Structure
Workflow Structure
- Validates
nodesarray exists and is not empty - Validates
connectionsobject exists - Checks for at least one trigger node
- Validates workflow settings if present
Node Structure
Node Structure
- Each node has required fields:
id,name,type,typeVersion,position,parameters - Node IDs are unique
- Node names are unique
- Position is valid [x, y] array
- Parameters is an object
Node Configuration Validation
Node Type Validation
Node Type Validation
- Node type exists in database
- Node version is supported
- Required fields are present
- Field values are valid
Complex Type Validation
Complex Type Validation
- Filter operators (binary vs unary)
- Resource mapper configurations
- Assignment collections
- Resource locators
Connection Validation
Connection Checks
Connection Checks
- Source nodes exist
- Target nodes exist
- Connection types are valid
- No circular dependencies
- All nodes are reachable from triggers
Expression Validation
Expression Syntax
Expression Syntax
- Expression syntax is valid (
={{ ... }}) - Referenced nodes exist
- Referenced fields are accessible
- No syntax errors in JavaScript expressions
Use Cases
- Pre-deployment validation: Catch all workflow issues before creating in n8n
- Development validation: Quick validation during workflow development
- AI Agent workflows: Validate workflows with AI Agent nodes and tool connections
- Expression validation: Check expression syntax before workflow execution
- Post-modification checks: Ensure workflow integrity after modifications
Best Practices
Always validate before creating workflows
Always validate before creating workflows
Validation catches errors early and saves API calls.
Use minimal profile during development
Use minimal profile during development
For rapid iteration, use minimal profile for faster validation.
Use strict profile before production
Use strict profile before production
Before deploying to production, validate with strict profile.
Pay attention to warnings
Pay attention to warnings
Warnings often indicate potential runtime issues, even if not errors.
Validate after modifications
Validate after modifications
Always validate after changing connections or node configurations.
Auto-sanitization during create/update
Auto-sanitization during create/update
Operator structures and missing metadata are automatically fixed when workflows are created or updated via
n8n_create_workflow or n8n_update_partial_workflow. Validation helps catch issues before they reach n8n.Common Pitfalls
Performance Characteristics
| Workflow Size | Validation Time | Notes |
|---|---|---|
| Small (1-10 nodes) | 50-100ms | Fast validation |
| Medium (10-50 nodes) | 100-300ms | Moderate validation |
| Large (50-100 nodes) | 300-500ms | Slower validation |
| Very Large (100+ nodes) | 500ms+ | Consider disabling some checks |
Validation Profile Comparison
| Profile | Speed | Thoroughness | Best For |
|---|---|---|---|
| minimal | Fastest | Basic checks | Development/editing |
| runtime | Fast | Standard checks | Default use |
| ai-friendly | Moderate | Balanced | AI agent workflows |
| strict | Slowest | Comprehensive | Production deployment |
Related Tools
validate_node
Validate individual nodes
n8n_create_workflow
Create validated workflow
n8n_autofix_workflow
Auto-fix workflow issues