ManualTrigger Automate

ManualTrigger Automate enables users to manually initiate a workflow that processes data in batches. It generates a sequence of items, splits them into individual batches, and evaluates conditions to determine when to end the loop. This workflow enhances efficiency by automating repetitive tasks and providing clear messaging upon completion, making it ideal for users seeking to streamline their processes.

7/8/2025
5 nodes
Complex
manualcomplexsplitinbatchescodecustomlogicconditional
Categories:
Complex WorkflowManual Triggered
Integrations:
SplitInBatches

Target Audience

This workflow is ideal for:
- Data Analysts: Who need to process batches of data efficiently.
- Developers: Looking to automate repetitive tasks with conditional logic.
- Business Analysts: Wanting to monitor specific conditions in data processing workflows.
- Project Managers: Seeking to optimize processes with manual triggers for better control over execution.
- Automation Enthusiasts: Interested in customizing workflows to suit specific business needs.

Problem Solved

This workflow addresses the challenge of processing data in manageable chunks while allowing for conditional actions based on the current batch index. It enables users to:
- Efficiently handle large datasets by splitting them into smaller batches.
- Implement logic to take specific actions after processing a defined number of batches (in this case, after 5 batches).
- Generate custom messages to indicate the end of processing, enhancing clarity and communication.

Workflow Steps

  • Manual Trigger: The workflow begins when the user clicks the 'execute' button, initiating the process.
    2. Function Node: A JavaScript function generates 10 items, each represented by an index from 0 to 9. This creates a dataset for processing.
    3. Split In Batches: The generated items are split into batches of size 1, allowing for step-by-step processing of each item.
    4. Conditional Check (IF Node): After processing each batch, the workflow checks if the current batch index equals 5. This conditional logic determines the next steps based on whether the condition is met.
    5. Set Node: If the condition is satisfied (after processing the 5th batch), a message indicating 'Loop Ended' is set, providing feedback to the user. If not, the workflow continues to process the next batch.
  • Customization Guide

    Users can customize this workflow by:
    - Adjusting the Batch Size: Modify the 'batchSize' parameter in the Split In Batches node to process more items at once.
    - Changing the Number of Items: Alter the loop in the Function node to generate a different number of items, adjusting the processing scale as needed.
    - Modifying Conditions: Update the conditions in the IF node to check for different criteria or batch indices, allowing for tailored responses based on specific needs.
    - Enhancing Messages: Customize the message in the Set node to provide more context or detail about the processing results, improving user feedback.