跳转到内容
Agentic Workflowdocs
v0.8.2免费安装

节点 / builtin / lambda

Lambda Workflow

Runs one of your lambda workflows as a single step inside another workflow.

Lambda 扩展程序网页应用

此内容尚不支持你的语言。

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.

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.
  • 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.

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.

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 }}.

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.

None. This node needs no credential and has no slots for other nodes. Credentials used inside the lambda workflow belong to its own steps.

Reuse a “Summarize a page” lambda workflow (input url, output summary):

  1. Context Menu trigger, so you can run it from the right-click menu.
  2. Get Page Metadata to read the page address.
  3. Summarize a page (this node) with url set to {{ $input.url }}.
  4. Slack posting {{ $input.summary }}.
  • “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.
编辑此页

最近更新:

Was this page useful?
向 Aria 询问“Lambda Workflow”