This template is a powerful, reusable utility for managing stateful, long-running processes. It allows a main workflow to be paused indefinitely at "checkpoints" and then be resumed by external, asynchronous events.
This pattern is essential for complex automations and I often call it the "Async Portal" or "Teleport" pattern.
The template consists of two distinct parts:
Wait
node (a "Checkpoint").session_id
, the Portal looks up the corresponding paused workflow and "teleports" the new data to it by calling its unique resume_url
.This architecture allows you to build sophisticated systems where the state is managed centrally, and your main business logic remains clean and easy to follow.
This is an advanced utility ideal for:
This template is a utility designed to be copied into your own projects. The workflow itself is a live demonstration of how to use it.
Copy the Async Portal: In your own project, copy the entire Async Portal (the bottom flow, starting with the A. Entry: Receive Session Info
trigger) into your workflow. This will be your state management engine.
Register Your Main Process: At the beginning of your main workflow, use an Execute Workflow
node to call the Portal's trigger. You must pass it a unique session_id
for the process and the resume_url
from a Wait
node.
Add Checkpoints: Place Wait
nodes in your main workflow wherever you need the process to pause and wait for an external event.
Trigger the Portal: Configure your external triggers (e.g., your chatbot's webhook) to call the Portal's entry trigger, not your main workflow's trigger. You must pass the same session_id
so the Portal knows which paused process to resume.
To see it in action, follow the detailed instructions in the "How to Test This Workflow" sticky note on the canvas.