Blocks
Function
Run custom logic
Execute custom JavaScript or TypeScript code within your workflow to transform data or implement complex logic. Create reusable functions to process inputs and generate outputs for other blocks.
Core Blocksfunction
Block Preview
Function
Run custom logic
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the function block with monitoring enabled in production.
Inputs (UI)
code
codePlaceholder: // Process input data const result = { processedAt: new Date().toISOString(), data: input.data || [] }; return result;
Layout: full
Inputs (API)
code
stringOptional
timeout
numberOptional
Outputs
Primary response type:
{
"result": "json",
"stdout": "string",
"executionTime": "number"
}Tool Access
function_execute