The Code Runner connector lets you run custom JavaScript or Python code inside your workflows. Use it for custom logic, data transformations, and calculations that aren’t covered by the built-in utility connectors.
No connection required. This utility connector works out of the box.
execute-javascript: Run JavaScript
Execute JavaScript code in a sandboxed VM environment.JavaScript code to execute.
Input data, available in the code as the data variable.
Execution timeout in milliseconds (max 30000).
Example request:Example response: execute-python: Run Python
Execute Python code in a sandboxed environment.Input data, available in the code as the data variable.
Execution timeout in milliseconds (max 30000).
Example request:Example response:
Tips
- Use the
data variable to access input passed from previous workflow nodes.
- Keep code focused; for simple transformations, consider using the JSON Tools or Text Tools connectors instead.
- Both JavaScript and Python run in isolated environments with limited access to system resources.
- Set an appropriate timeout for long-running computations.