n8n
Comprehensive n8n workflow automation cheat sheet covering nodes, expressions, triggers, code patterns, error handling, and deployment.
Table of Contents
Core Concepts
Workflows & Nodes
Basic building blocks of n8n automation
Credentials
Managing authentication for external services
Expression Syntax
Accessing Data
Expression variables for accessing workflow data
Date & Time with Luxon
Built-in date/time manipulation using Luxon
Data Transformation
String, array, and object manipulation in expressions
Essential Nodes
HTTP Request
Make API calls to any service
IF & Switch
Conditional branching in workflows
Edit Fields (Set)
Transform and reshape data structure
Merge & Aggregate
Combine data from multiple sources
Code Node
JavaScript Patterns
Common code patterns for data transformation
Static Data & Workflow Variables
Persist data between executions
Triggers
Webhook Trigger
HTTP endpoints for external events
Schedule Trigger
Cron-based workflow scheduling
Error Handling
Error Handling Patterns
Strategies for handling workflow errors
Self-Hosting
Docker Deployment
Run n8n with Docker and Docker Compose
Environment Variables
Essential configuration for self-hosted n8n
Scaling & Performance
Queue Mode
Scale n8n with workers and Redis
Performance Tips
Optimize workflow performance
Common Gotchas
Mistakes to Avoid
Common pitfalls and how to fix them
AI Features
AI Agent & LangChain
Build AI-powered workflows with LLMs