Docs
Nodes
Execute Flow

Execute Flow Documentation

The Execute Flow in Lamatic enables execution of other flows within your current workflow, facilitating modular and reusable flow designs. This node serves as a powerful tool for creating complex, interconnected workflows by allowing flows to be used as building blocks.


execute.png

Features

âś… Key Functionalities

  • Sub-flow Execution: Call and execute other flows
  • Data Passing: Transfer current flow data as input
  • Modular Design: Create reusable workflow components

âś… Benefits

  • Enables workflow modularity
  • Promotes code reuse
  • Simplifies complex processes

Prerequisites

Before using the Execute Flow, ensure you have:

  • Active flows with compatible triggers (API Request, Chat, or Search)
  • Necessary permissions to execute target flows
  • Understanding of data flow and parameter passing

Configuration Reference

Execute Flow Parameters

ParameterDescriptionRequiredExample
Flow IDTarget flow selection from active flowsâś…4be6dea6-d13c-44d8-87cf-5ad46361c890
Request InputInput parameters for target flowâś…{ "prompt": "{{triggerNode_1.output}}"}

Usage Guidelines

Setting Up Execute Node

  1. Add Execute Node:

    • Drag Flow Node to your workflow
    • Select target flow from dropdown
  2. Configure Parameters:

    • Set Flow ID for target flow
    • Configure input parameters
    • Map data from current flow
  3. Validate Configuration:

    • Ensure all required parameters are set
    • Verify data mapping is correct

Best Practices

  1. Modular Design

    • Break complex workflows into smaller flows
    • Create reusable components
    • Maintain clear flow boundaries
  2. Data Management

    • Plan data flow between workflows
    • Document parameter requirements
    • Handle data transformations appropriately
  3. Error Handling

    • Implement proper error checking
    • Provide fallback options
    • Monitor flow execution

Low-Code Example

{
  "nodeId": "executeFlow_1",
  "nodeType": "executeFlow",
  "nodeName": "Process Data",
  "values": {
    "flowId": "4be6dea6-d13c-44d8-87cf-5ad46361c890",
    "requestInput": {
      "prompt": "{{triggerNode_1.output}}",
      "parameters": {
        "format": "json",
        "maxLength": 500
      }
    }
  }
}

Troubleshooting

Common Issues

ProblemSolution
Flow Not FoundVerify Flow ID and deployment status
Parameter MismatchCheck input parameter format and requirements
Permission DeniedConfirm execution permissions
Execution TimeoutReview flow complexity and timeout settings

Debugging Tips

  • Check Lamatic Flow logs for error details
  • Verify flow deployment status
  • Test input parameters independently
  • Monitor flow execution time
  • Review permission settings

Example Use Cases

Multi-step Processing

  1. Data Preparation Flow:

    • Clean and validate input data
    • Transform data format
    • Apply business rules
  2. Analysis Flow:

    • Process prepared data
    • Generate insights
    • Create reports
  3. Notification Flow:

    • Send results to stakeholders
    • Update systems
    • Log completion status

Chain Processing

  • Execute series of specialized flows
  • Pass results between flows
  • Maintain process isolation

Was this page useful?

Questions? We're here to help

Subscribe to updates