⏸️ Let’s Control Execution — Pause & Stop
Sometimes you need your workflow to wait for a moment before continuing, or stop entirely based on a condition. That is exactly what the Sleep and Stop tools help you do.
Step 1: Add a Console step with any message — for example: Workflow Started.
Step 2: Add a Sleep tool. By default, the workflow pauses for 5 seconds when the Sleep tool is used. You can configure the number of seconds based on your requirement.
Step 3: Add another Console step with any message — for example: Workflow Resumed.
When you run this workflow, the console logs Step 1, pauses for the configured duration, and then logs Step 3.
\
🛑 Stopping a Workflow Mid-Execution
The Stop tool lets you hard stop the workflow at any step during execution.
This is useful when a condition is not satisfied and continuing the workflow does not make sense. Simply add the Stop tool at the point in the workflow where you want execution to end.