Code integration

Custom code

2 operationsDeveloper Tools

The Serverless Function node lets you run your own code as a step in a workflow. It is the place for custom logic that no off-the-shelf node covers: reshaping data, doing calculations, branching on complex conditions, or transforming one node's output into the format the next node expects. You write the function, name its inputs, and the workflow runs it on demand.

What you can automate with Code

Code operations

Questions

The node offers two runtimes. A JavaScript runtime uses fast QuickJS execution for quick data transformations and simple logic, and a Python runtime runs in a full sandbox for heavier work.

Yes, with the Python runtime. It lets you list pip requirements, configure CPU cores and memory, choose a GPU type and count, set a timeout, and pick a preferred region. The JavaScript runtime is for lightweight logic without external dependencies.

You define named function inputs on the node, and each input takes a value reference from an upstream node such as {{node-id.field}}. Inside the function body those names are available as variables.

Use it whenever you need custom logic that no existing node provides, most often to transform or filter data between two nodes. For talking to an external API, the HTTP Request node is usually the better fit.

Yes. JavaScript runs in an isolated QuickJS engine, and Python runs in a sandboxed environment with configurable hardware limits. This keeps custom code contained while still letting it do real work in the workflow.

Give Code to an agent

All integrations

Free to start.