Workflow node reference
Function
Call a custom JavaScript function deployed on Cloudflare Workers. Exact configuration, outputs, execution behavior, errors, limits, and examples for the Function workflow node.
What this guide covers
- Category: Integrations.
- Use it to call a deployed Yanola Function and route through success or error.
- 2 configuration fields and 5 documented outputs.
- Custom code requires developer review and can create external side effects.
What this node does
Call a custom JavaScript function deployed on Cloudflare Workers
Use it to call a deployed Yanola Function and route through success or error.
When not to use it
Do not use it when a supported App Action or simple Set Variable can perform the task.
Prerequisites
- Function created and Deployed
- Valid input mapping
- Secrets stored in Environment Secrets
- Timeout from 1 to 60 seconds
Function created and Deployed. Valid input mapping. Secrets stored in Environment Secrets. Timeout from 1 to 60 seconds
Inputs and configuration fields
| Field | Key | Control / type | Requirement | Default | Accepted values and behavior |
|---|---|---|---|---|---|
Function | function_id | select | Required when shown | No default | Choose which function to execute. Only deployed functions are shown.. Select a function |
Timeout (ms) | timeout_ms | number | Optional | 30000 | Maximum time to wait for function response (1-60 seconds). minimum 1000; maximum 60000 |
Configure the node
- Drag Function from Integrations in the node palette.
- Select the node to open its configuration drawer.
- Complete every required field and any conditional field revealed by your choices.
- Insert variables only from the current trigger or an earlier node on the same path.
- Connect every required output handle to the intended next step.
- Save and run Workflow Test with representative data before activation.
Outputs
Later nodes can use these values only after this node has run successfully on the same execution path.
| Variable | Type | Meaning |
|---|---|---|
{{nodes.function.result}} | object | The data returned by your function |
{{nodes.function.status_code}} | number | HTTP status code from the function response |
{{nodes.function.duration_ms}} | number | How long the function took to execute |
{{nodes.function.success}} | boolean | Whether the function executed successfully |
{{nodes.function.error}} | string | Error message if the function failed |
Execution behavior
- Invokes the selected deployed function with mapped input.
- Waits up to the configured timeout.
- Emits result, status, duration, success, and error, then selects success or error path.
Do not assume a failed node is automatically retried. Review the execution result and the relevant service documentation before repeating an operation that could create a duplicate side effect.
Example use case
Normalize an external order payload before updating a contact and replying.
Webhook → Function → Condition → Update Contact → Send TemplateCommon errors
| Symptom | Resolution |
|---|---|
Function is unavailable | Deploy it successfully and refresh the picker. |
Invocation times out | Reduce work or adjust timeout within 1–60 seconds. |
Error branch runs | Inspect function test/log and returned error before retrying. |
Limitations
Custom code requires developer review and can create external side effects.
Workflow Test should not replace Function's own JSON tests.
Custom code requires developer review and can create external side effects. Workflow Test should not replace Function's own JSON tests.