Code
Logic & TransformCode Node
Overview
Supports the following operations: Python 3, JavaScript.
Configuration
| Property | Type | Default | Description |
|---|---|---|---|
language | string | — | Programming language for the code node |
code | string | — | Code snippet to execute (Python or JavaScript) |
Output Variables
Reference these variables in downstream nodes using the {{node.field}} syntax.
{{code.output}}anyOutput field: output
{{code.result}}anyOutput field: result
Examples
Basic Usage
Example configuration:
{
"language": "value",
"code": "value"
}Tips & Best Practices
- •Ensure all required fields are configured.
- •Check the output variables to see available data.
- •Use the workflow test panel to debug variable resolution step by step.
Try Code in Your Workflow
Create a free account and start building AI-powered workflows with the Code node.
Open Workflow Editor