What problem does it solve?
This Skill helps you write Python code in n8n Code nodes while respecting the platform's limitations, such as no external libraries and the need to format results correctly. It clarifies how to access input data, work with webhook payloads under the body property, and produce the required output shape.
Core Features & Use Cases
- Python Modes: Python (Beta) and Python Native with guidance on when to use each.
- Data Access: Learn to read data with _input.all(), _input.first(), and _input.item, and to safely access webhook payload under _json["body"].
- Safety & Compliance: No external libraries; use standard library (json, datetime, re, base64, hashlib, urllib, math, random, statistics) and return the required format [{"json": {...}}].
- Use Cases: data transformation, validation, parsing, and simple automation within n8n workflows.
Quick Start
In a Code node, read all inputs with _input.all(), perform your transformation, and return a properly formatted array like [{"json": { ... }}]. For webhooks, access payload via _json.get("body", {}) and always use .get() for safe access.