nodes / builtin / lambda
Lambda Workflow
Runs one of your lambda workflows as a single step inside another workflow.
Lambda Workflow runs one of your lambda workflows as a single step, so you can build a set of steps once and reuse it in many workflows.
What it does
Section titled “What it does”Every lambda workflow you create appears as its own node, named after the workflow. When the run reaches it, the node starts that workflow with the values you filled in, waits for it to finish, and outputs what its Lambda Output returned.
- Settings come from the lambda workflow. The node shows one field per input declared in the workflow’s Lambda Input, with the same defaults.
- Errors name the real cause. If a step inside the sub-workflow fails, the error tells you the workflow, the failing step and its message.
- Changes apply everywhere. Edit the lambda workflow once and every workflow that calls it uses the new version.
When to use it
Section titled “When to use it”- The same group of steps appears in several workflows, for example “clean up a contact” or “post to the team channel”.
- A workflow is getting large and you want to split it into named, testable parts.
- You want a reusable “get an approval” or “wait for the job” step (see pausing below).
To let an AI agent decide when to call a workflow, use Workflow as Tool instead.
Inputs and settings
Section titled “Inputs and settings”There is no fixed list of settings: the fields are the inputs of the lambda workflow you picked. Fill them with fixed values or expressions such as {{ $input.email }}. A field left empty uses the default set in the lambda workflow’s Lambda Input.
To add the node: open the node list, switch to the Customs tab and pick the workflow under My Lambda Workflows. Only workflows created as Lambda appear there.
Outputs
Section titled “Outputs”One output port. It carries the values from the lambda workflow’s Lambda Output, with the names and types declared there, for example { "summary": "...", "wordCount": 120 }. Read them in the next step with {{ $input.summary }}.
Pausing inside a sub-workflow
Section titled “Pausing inside a sub-workflow”A lambda workflow can contain a step that pauses, such as Wait For Approval, In-Page Form, a long Wait or Poll Until. The whole run then pauses: the sub-workflow waits (you see it in the Executions pane), and the outer workflow waits at this node. When the sub-workflow finishes, its output flows into this node and the outer workflow continues.
This only works through the Lambda Workflow node. A lambda workflow used through Workflow as Tool cannot pause mid-run: the run fails instead.
Dependencies and credentials
Section titled “Dependencies and credentials”None. This node needs no credential and has no slots for other nodes. Credentials used inside the lambda workflow belong to its own steps.
Example workflow
Section titled “Example workflow”Reuse a “Summarize a page” lambda workflow (input url, output summary):
- Context Menu trigger, so you can run it from the right-click menu.
- Get Page Metadata to read the page address.
- Summarize a page (this node) with url set to
{{ $input.url }}. - Slack posting
{{ $input.summary }}.
Troubleshooting
Section titled “Troubleshooting”- “Workflow “Summarize a page” failed at node “Http Request”: …“. A step inside the lambda workflow failed. Open that workflow and fix the named step; the rest of the message is that step’s own error.
- “Workflow … produced no output. Check that it has an Output node and that the branch reaching it ran.” The lambda workflow finished without reaching its Lambda Output. Add one, or make sure every branch leads to it.
- “Workflow … calls itself through a sub-workflow, which would never end.” A workflow calls itself, directly or through a chain (A calls B, B calls A). Remove the call that leads back.
- “Sub-workflows are nested more than 10 deep”. Lambda workflows call each other more than 10 levels deep. Flatten the calls.
- The node shows an alert or “Workflow not found”. The lambda workflow it points to was deleted or can’t be loaded. Replace the node with an existing lambda workflow.
Related nodes
Section titled “Related nodes”- Lambda Input and Lambda Output: define what a lambda workflow accepts and returns.
- Workflow as Tool: let an AI agent call a lambda workflow.
- Try: handle a failing sub-workflow without stopping the run.