Skip to content

Lambda Output

What it does: Defines what data your reusable workflow components return to other workflows.

Perfect for: Reusable workflows • Template workflows • Modular design • Data processing results

graph LR
    A[🔄 Lambda Workflow] --> B[📤 Lambda Output]
    B --> C[✅ Format Data]
    C --> D[📥 Calling Workflow]

    style A fill:#e1f5fe
    style B fill:#fff3e0
    style C fill:#e8f5e8
    style D fill:#f3e5f5

Simple process: Lambda workflow finishes → Lambda Output formats results → Returns data to calling workflow

Return processed data - Send results back to the workflow that called your lambda Format results - Structure data in a consistent way for other workflows Aggregate results - Combine multiple processing steps into one output Standardize responses - Ensure all your reusable workflows return data the same way

Scenario: Return extracted content and metadata from a web extraction lambda workflow

Lambda Output Configuration:

{
"outputSchema": {
"type": "object",
"properties": {
"content": {"type": "string"},
"wordCount": {"type": "number"},
"extractedAt": {"type": "string"}
}
}
}

Data from your lambda workflow:

{
"extractedText": "This is the webpage content...",
"wordCount": 156,
"processingTime": 1200
}

Lambda Output returns to calling workflow:

{
"content": "This is the webpage content...",
"wordCount": 156,
"extractedAt": "2024-01-17T10:30:15Z"
}
```## Simple Configuration Tips
**Basic text result:**
```json
{
"outputSchema": {"type": "string"}
}

Structured data result:

{
"outputSchema": {
"type": "object",
"properties": {
"title": {"type": "string"},
"content": {"type": "string"},
"wordCount": {"type": "number"}
}
}
}

Array of results:

{
"outputSchema": {
"type": "array",
"items": {"type": "string"}
}
}

Simple data return:

[Process Data] → [Lambda Output] → [Calling Workflow]

Multiple processing steps:

[Step 1] → [Step 2] → [Step 3] → [Lambda Output] → [Calling Workflow]

Error handling:

[Process Data] → [Check Results] → [Lambda Output OR Error Handler]

Output validation fails: Check that your data matches the output schema format

Calling workflow gets wrong data: Verify the output schema matches what the calling workflow expects

Large data causes slowness: Consider returning only essential data and processing large datasets in chunks

Related nodes: Lambda InputEdit FieldsIf

Common workflows: Modular Workflow PatternsReusable Component DesignData Processing Pipelines

Learn more: Lambda Workflows GuideAdvanced Workflow DesignWorkflow Architecture