n8n-code-python

Execute Python code with standard libraries inside n8n Code nodes.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables you to write and execute Python code directly within n8n workflows, allowing for custom data transformations and logic that go beyond standard nodes.

Core Features & Use Cases

  • Custom Logic: Implement complex data manipulation, validation, and calculations.
  • Standard Library Access: Utilize Python's built-in modules like json, datetime, re, base64, and hashlib.
  • Use Case: Automatically parse incoming webhook data, enrich it with calculated fields, and format it for a downstream API call, all within a single Code node.

Quick Start

Use the n8n-code-python skill to process all items from the previous node, adding a 'processed' flag and a timestamp to each.

Frequently Asked Questions about n8n-code-python

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

FAQPage Schema
How do I write Python code in n8n Code nodes for data transformation?▼

You can execute Python in n8n Code nodes to perform custom data transformation by writing scripts that process items from previous nodes and enrich them with calculated fields.

Can I use external Python libraries in n8n automation workflows?▼

You cannot use external Python libraries in n8n automation workflows, as the environment enforces limitations and requires leveraging built-in modules or alternative n8n nodes for extended tasks.

What Python standard library modules are available for scripting in n8n?▼

Available Python standard library modules for scripting in n8n include json, datetime, re, base64, and hashlib for JSON manipulation, date operations, regular expressions, and encoding.

Does n8n support Python for custom logic and validation in workflows?▼

n8n supports Python for custom logic and validation by providing a dedicated environment within Code nodes to implement complex data manipulation and calculations beyond standard nodes.

Why should I use alternative n8n nodes instead of Python for HTTP requests?▼

You should use alternative n8n nodes for HTTP requests and database interactions because the Python Code node explicitly prohibits external libraries, directing users to native nodes for these tasks.

What is the best way to parse webhook data in n8n using Python?▼

The best way to parse webhook data in n8n using Python is utilizing the built-in json module within a Code node to extract, enrich, and format the payload for downstream API calls.