Real-World Workflows · 45 min
Code node (JavaScript & Python)
Write custom logic without leaving n8n, in both run-once and run-per-item modes.
Key concepts
- Run Once vs Run for Each Item
- Built-in libraries
- Returning multiple items
Exercise
Write a Code node that deduplicates items by email and returns only unique records.