Subworkflows
Subworkflows in Lleverage allow you to use existing workflows within other workflows, creating modular, reusable components that enhance efficiency and organization. This powerful feature helps you avoid duplicating work and creates logical groupings of functionality.
Key Features
Workflow reusability for common processes and tools
Modular design that simplifies complex automations
Organizational structure for grouping related functions
Consistent execution of standardized processes
Easy maintenance through centralized updates
How to Add Subworkflows
Open the Add Action menu using one of three methods:
Click the "Add Action" button in the top left corner
Click on a connection circle on an existing action card
Click and drag from one node to create a connection
Find Subworkflows in either:
The "Subworkflows" tab
The "Subworkflows" subcategory in other tabs
Select from available published workflows in your project
Click on your chosen Subworkflow to add it to your canvas
💡 You can only add Subworkflows that you have access to within your project.
Understanding Subworkflow Cards
Subworkflow cards have a distinct appearance:
They display as a "stat card" shape, different from standard action cards
They include the workflow name and description
They show a branch icon by default (if no custom icon was specified)
The card header contains:
Variable output in the top left corner
The same action controls as other action cards
Connection points on left and right sides
The card body shows:
A description (generated automatically if none was specified in the original workflow)
Configuration fields that match the trigger inputs of the referenced workflow
⚠️ When selecting a Subworkflow card, you only select the top card portion, not the entire visual representation.
How to Configure Subworkflows
When you add a Subworkflow, the configuration area will match the trigger inputs of the original workflow
Fill in these fields just as you would for a standard trigger
You can rename the Subworkflow node in your canvas if desired
Connect the Subworkflow to other actions using the standard connection points
💡 The configuration options for a Subworkflow are determined by what inputs were defined in the original workflow's trigger.
How to Edit Subworkflows
To edit a Subworkflow from your main workflow:
Select the Subworkflow card on your canvas
Click the three-dot menu in the top right corner
Select "Edit" (pencil icon) from the options menu
This will navigate you to that workflow for editing:
The breadcrumbs at the top will show your location
You can make changes to the Subworkflow if you have access
To return to your main workflow, use the breadcrumbs navigation
Important publishing considerations:
Any changes you make to a Subworkflow must be published for them to take effect in your main workflow
Unpublished changes will be saved as drafts but won't affect the current published version
The publishing process follows the same workflow as other Lleverage components
⚠️ Remember that changes to a Subworkflow may affect all workflows that use it, not just your current main workflow.
How Subworkflows Execute
When your main workflow runs and reaches a Subworkflow:
The main workflow pauses execution
The Subworkflow runs with the inputs you've provided
Once the Subworkflow completes, the main workflow resumes
The Subworkflow's output becomes available to subsequent actions
This execution pattern creates a nested structure:
Main workflow → Subworkflow → Main workflow continues
⚠️ If a Subworkflow encounters an error, it may affect the execution of the main workflow depending on your error handling configuration.
Important Subworkflow Considerations
Access Controls:
You can only add Subworkflows that you have access to in your project
You can see Subworkflows added by others in shared workflows, but cannot add them yourself unless you have access
You can only edit Subworkflows if you have edit access to them
Workflow States:
Only published workflows can be used as Subworkflows
Changes to the original workflow will affect all instances where it's used as a Subworkflow
Draft changes don't affect the published version used by other workflows
Design Principles:
Create Subworkflows for processes that are used repeatedly
Design Subworkflows to be modular and focused on specific tasks
Ensure Subworkflows have clear input requirements and outputs
Visual Representation:
The distinct card shape makes it easy to identify Subworkflows in your canvas
The branch icon is the default, but can be customized in the original workflow
💡 Think of Subworkflows as functions or methods in programming - reusable components that perform specific tasks and can be called from multiple places.
Benefits of Using Subworkflows
Reduced Duplication: Build a process once and use it in multiple workflows
Easier Maintenance: Update one Subworkflow to affect all instances where it's used
Better Organization: Group related actions into logical units
Simplified Complexity: Break down complex workflows into manageable components
Standardization: Ensure consistent execution of critical processes
💡 Using Subworkflows effectively can significantly reduce the time needed to build complex automations while improving their reliability and maintainability.
Last updated