Skip to content

Lambda Workflow

The Lambda Workflow node lets you run complete workflows as single steps within other workflows. Think of it like calling a specialized helper that knows how to do a specific task perfectly every time.

This is incredibly powerful for building complex automations from smaller, reusable pieces. Instead of rebuilding the same logic over and over, you create it once and use it everywhere.

Illustration of a workflow calling another workflow as a component

When your workflow reaches a Lambda Workflow node, it pauses, runs the specified sub-workflow with the data you provide, waits for it to complete, and then continues with the results.

graph LR
  Main[Main Workflow] --> Call{Lambda Workflow}
  Call --> Sub[Sub-Workflow]
  Sub --> Results[Return Results]
  Results --> Continue[Continue Main]
  style Call fill:#6d28d9,stroke:#fff,color:#fff
  1. Choose Your Workflow: Select which workflow you want to run. This workflow must have a Lambda Input node to receive data.

  2. Prepare the Data: Map the data from your current workflow to match what the sub-workflow expects to receive.

  3. Configure Options: Set timeout limits and decide how to handle errors if the sub-workflow fails.

  4. Connect the Results: The sub-workflow’s output becomes available for the next steps in your main workflow.

Practical example: Content processing pipeline

Section titled “Practical example: Content processing pipeline”

Let’s say you have a specialized workflow that analyzes any text content, and you want to use it in multiple different workflows.

Let’s say you have a specialized workflow that analyzes any text content, and you want to use it in multiple different workflows.

Main Workflow Data: Your main workflow has found an article and extracted some text:

  • extractedText: “Artificial intelligence is transforming how we work…”

Calling the Sub-Workflow: You use the Lambda Workflow node to call a sub-workflow named “text-analyzer-v2”. You pass the extractedText as input.

The Results: The sub-workflow runs, does its magic, and returns a detailed analysis:

{
"analysis": {
"sentiment": "positive",
"keyTopics": ["AI", "automation", "productivity"],
"readingLevel": "intermediate",
"wordCount": 847
},
"processingTime": 2300
}

Now your main workflow can use this data to make decisions or save reports.

ScenarioWhy Use Lambda WorkflowExample
Repeated LogicSame processing needed in multiple workflowsText analysis, data validation, format conversion
Complex OperationsBreak big workflows into manageable piecesMulti-step data processing, content generation
Specialized TasksReuse expert workflows across projectsAI analysis, web scraping, API integrations
Team CollaborationShare workflow components between team membersStandard data processing, company-specific validations
SettingPurposeRecommended Value
Workflow IDWhich sub-workflow to runUse descriptive names like “email-validator”
TimeoutHow long to wait before giving up30 seconds for most tasks, longer for AI processing
Retry AttemptsHow many times to try if it fails1-2 retries for network issues
Error HandlingWhat to do if the sub-workflow failsContinue with default values or stop the main workflow
  • “Workflow not found” errors: Check that the workflow ID exists and is published. Make sure you have permission to run it.
  • Input validation failures: Verify that your input data matches exactly what the sub-workflow’s Lambda Input node expects.
  • Timeout errors: Increase the timeout value or optimize the sub-workflow to run faster.
  • Unexpected results: Check that the sub-workflow’s Lambda Output node is returning data in the format you expect.