What problem does it solve?
Helps developers write Python code inside n8n Code nodes while understanding platform limitations (no external libraries) and applying safe data-access patterns.
Core Features & Use Cases
- Data access patterns: _input.all(), _input.first(), _input.item, and _node references for cross-node data.
- Webhook gotcha: webhook payloads live under the body key and must be accessed via _json["body"] with safe .get() usage.
- Return discipline: always return a list of items with a top-level "json" key, enabling reliable downstream processing.
- Standard library focus: guidance on using only Python's standard library (json, datetime, re, base64, hashlib, urllib.parse, math, random, statistics), with JavaScript preferred for most tasks.
- Error prevention: practical patterns to avoid KeyError, IndexError, and missing returns, plus guidance on mode selection (All Items vs Each Item).
Quick Start
Create a Python Code node that reads all input items with _input.all(), processes each item by adding a timestamp, and returns the results in the required [{"json": {...}}] format.
Quick Start (single-sentence instruction)
Create a Python Code node that reads all input items with _input.all(), processes each item by adding a timestamp, and returns the results in the required [{"json": {...}}] format.