n8n-code-python

Teach Python usage in n8n Code nodes with data access and output constraints.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/produtoramaxvision/claude-code-n8n-skills --skill n8n-code-python-produtoramaxvision
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-code-python
Source: https://github.com/produtoramaxvision/claude-code-n8n-skills/tree/main/skills/n8n-code-python
Command: npx skills add https://github.com/produtoramaxvision/claude-code-n8n-skills --skill n8n-code-python-produtoramaxvision

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The skill helps users understand and work within the Python constraints of n8n Code nodes, including safe data access patterns, safe return formats, and the no-external-libraries limitation.

Core Features & Use Cases

  • Guidance on using _input.all(), _input.first(), _input.item, and _node for data access.
  • Rules for webhook payloads under the "body" key and the required [{"json": ...}] output format.
  • Recommendations to prefer JavaScript for most tasks and Python only when standard library needs arise.

Quick Start

Execute a Python Code node example to transform incoming data using only the standard library and the _input access patterns, ensuring the webhook body is read from body and the output follows the [{"json": {...}}] format.

Frequently Asked Questions about n8n-code-python

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I access input data in an n8n Python Code node?

To access input data in an n8n Python Code node, use the built-in data access patterns `_input.all()`, `_input.first`, and `_input.item` to retrieve items, while `_node` provides access to node-level data and workflow variables.

Does n8n support external Python libraries in the Code node?

n8n does not support external Python libraries in the Code node. You must enforce the no-external-libraries limitation and restrict your scripts to only use the built-in Python standard library.

How do I read webhook payloads in an n8n Python Code node?

To read webhook payloads in an n8n Python Code node, extract the incoming data from the `body` key using the standard input access patterns, ensuring the webhook payload is safely parsed before transformation.

Should I use Python or JavaScript for n8n Code nodes?

You should prefer JavaScript as the default option for n8n Code nodes. Reserve Python only for specific cases requiring the standard library, as JavaScript is the primary recommended language for workflow tasks.