N8n Code Node

Write JavaScript or Python in the n8n Code node correctly. Use when user says "write a Code node", "transform data in n8n", "use the Code node to...", "JavaScript in n8n", "Python in n8n", "$json in code node", "$input vs $json", "item linking in code node", "pairedItem", "use Luxon in n8n", "use JMESPath in n8n", "binary data in code node", "AI Code Tool", "Code Tool for agent", "external libraries in code node", "fetch in code node", or pastes Code-node JS/Python. Covers the two run modes ("Run Once for All Items" vs "Run Once for Each Item"), the canonical pairedItem-preserving pattern, $json/$input/$node/$execution semantics, binary data access via helpers, Luxon (DateTime), JMESPath, the Pyodide-based Python runtime, $getWorkflowStaticData persistence, and external library use. Do NOT use for building community node packages (use n8n-create-nodes), designing the broader workflow (use n8n-build-workflow), or debugging non-code-node failures (use n8n-debug-workflow).

rwilson504 Updated

File contents

rwilson504/agent-skills/tree/main/src/skills/n8n-code-node commit a75a80d9a5

Frequently asked questions

npx skillmds@latest add rwilson504/n8n-code-node