
Long-Running Workflows
Agents that sleep for days.
Long-Running Workflows
Example: "Email me every morning for a week."
The Sleep Node
You need a persisted database (Postgres).
- Node executes.
- Next step: "Wait 24 hours."
- System saves state to DB, kills process.
- Cron job wakes up 24 hours later, loads state, resumes execution.
Without persistence, you cannot build long-running agents.