n8n-code-javascript - Write JavaScript for n8n Code nodes
Write and troubleshoot JavaScript in n8n Code nodes using workflow data, built-in helpers, dates, and supported execution modes.
Tags
Updated: 2026-09-30Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Choose Code node modes
- Access workflow input data
- Reference other workflow nodes
- Transform and enrich items
- Filter and aggregate data
- Make HTTP requests
- Handle webhook body data
- Troubleshoot Code node errors
- Return valid n8n items
Inputs
- Workflow input items
- Referenced node data
- Webhook payloads
- HTTP request parameters
- JavaScript processing logic
Outputs
- Transformed workflow items
- Aggregated workflow items
- HTTP response data
- Code node execution results
Requirements
- n8n Code node
- JavaScript support
- n8n built-in variables
- HTTP helper availability for requests
