What problem does it solve?
Python in n8n Code nodes is constrained by no external libraries, requires careful data handling, and a consistent return format. This Skill provides expert guidance to write robust Python code inside Code nodes, including safe data access patterns, webhook payload handling, and best practices for mode selection (All Items vs Each Item).
Core Features & Use Cases
- Data access patterns for batch and per-item processing using _input.all(), _input.first(), and _input.item, plus _node references for cross-node data.
- Webhook payload awareness: access data through the body property of the webhook payload.
- No external libraries: use only Python's standard library (json, datetime, re, base64, hashlib, urllib.parse, etc.).
- Enforced return format: always return a list of dictionaries with the json key for downstream nodes.
- Real-world scenarios: data transformation, aggregation, validation, and micro-automation inside n8n.
Quick Start
Describe your input and the transformation you want, and I will generate a ready-to-run Python snippet for an n8n Code node.