n8n-python

Write Python code in n8n Code nodes for data manipulation and automation.

7|2|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/LuisSambrano/antigravity-config --skill n8n-python
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-python
Source: https://github.com/LuisSambrano/antigravity-config/tree/main/skills/4-automation/n8n-python
Command: npx skills add https://github.com/LuisSambrano/antigravity-config --skill n8n-python

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides guidance for writing Python code within n8n Code nodes, enabling users to leverage Python's capabilities for data manipulation and automation within their n8n workflows.

Core Features & Use Cases

  • Python Code Execution: Write and execute Python scripts directly inside n8n.
  • Data Handling: Process input data using Python, transforming and preparing it for subsequent nodes.
  • Use Case: Use this skill to perform complex data transformations, custom calculations, or integrate with Python libraries (within standard library limitations) that are not directly supported by other n8n nodes.

Quick Start

Use the n8n-python skill to process input items by adding a 'processed' key with the current timestamp to each item's JSON.

Frequently Asked Questions about n8n-python

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

FAQPage Schema
How do I write Python code in an n8n Code node?

To write Python code in an n8n Code node, access input data using the _input and _json objects, perform your data manipulation, and return the results in the required JSON format for subsequent workflow nodes.

What is the best way to transform data using Python within n8n automation workflows?

Transforming data in n8n automation is best done by writing Python scripts in the Code node to perform custom calculations and data manipulation, returning the processed items in the expected JSON structure.

Can I use external Python libraries in n8n Code nodes?

No, you cannot use external Python libraries in n8n Code nodes. Python code execution is limited to the standard library, so you must rely on built-in functions for data validation and transformation tasks.

How does data handling work when executing Python scripts directly inside n8n?

Data handling in n8n Python execution works by accessing incoming workflow data through the _input and _json objects, allowing you to prepare and transform data before passing it to subsequent nodes.

Does n8n support Python for complex data transformation and validation?

n8n supports Python for complex data transformation and validation through its Code node, enabling custom scripting and calculations that are not directly supported by other standard automation nodes.

What are the limitations of using Python for data manipulation in n8n?

The main limitation of using Python for data manipulation in n8n is the absence of external libraries, restricting you to standard library functions and requiring strict adherence to specific return formats for successful automation.