What problem does it solve?
This Skill clarifies how to use Python inside n8n Code nodes, addressing the external-library limitation and the need for reliable data handling, mode selection, and return formats.
Core Features & Use Cases
- Standard library-only guidance: Learn which modules are available and how to safely apply them.
- Mode and data access clarity: Understand All Items vs. Each Item modes and how to access webhook payloads under body.
- Error-prevention best practices: Use .get() for dictionary access and safe list indexing to avoid common KeyError/IndexError.
- Return-format discipline: Ensure outputs are a list of objects with a json key, suitable for downstream nodes.
- Real-world patterns: Apply common Python patterns for data transformation, validation, and simple analytics within Code nodes.
Quick Start
In a Python Code node, read input with _input.all(), apply a simple transformation (e.g., add a "processed" flag and timestamp) and return a properly formatted array of items.