# Autonomous Agent Scheduling > Source: https://ibl.ai/resources/capabilities/autonomous-agent-scheduling *AI agents that wake up, check for work, and act — on your schedule, around the clock, without a single prompt.* Most AI tools wait to be asked. ibl.ai agents don't. The Heartbeat system — built into the OpenClaw framework and enterprise-hardened by ibl.ai — gives every agent an internal clock. Agents wake on configurable schedules (every 30 minutes by default), scan for pending tasks, evaluate conditions, and execute actions autonomously. Cron expressions, event-driven triggers, and threshold-based activation all work out of the box. This is the difference between a reactive chatbot and a production-grade autonomous agent. Your workflows run while your team sleeps, scales, and focuses elsewhere. ## The Challenge Enterprise operations generate continuous streams of data, alerts, reports, and decisions that demand timely action. When AI systems are purely reactive — waiting for a human to type a prompt — critical windows close, anomalies go undetected, and the burden of orchestration falls back on people. Teams end up building fragile cron scripts, chaining together brittle integrations, or hiring staff whose sole job is to trigger the next step in a workflow. The result is latency, human error, and an AI investment that only delivers value when someone remembers to use it. ## How It Works 1. **Configure the Heartbeat Schedule:** Define when an agent wakes using standard cron expressions, interval-based timers, or event-driven triggers. The default pulse is every 30 minutes, but schedules can range from seconds to days. Multiple agents can run on independent schedules within the same deployment. 2. **Agent Wakes and Loads Persistent Memory:** On each heartbeat, the agent loads its persistent memory state — stored as Markdown files and indexed via SQLite vector and keyword search. It recalls prior actions, outstanding tasks, and contextual history from previous runs without any re-prompting. 3. **Brain Evaluates Conditions via ReAct Loop:** The OpenClaw Brain orchestrates a ReAct (Reasoning + Acting) loop. The agent reasons about current state, checks conditions (data thresholds, file changes, API responses, calendar events), and decides whether action is warranted — all autonomously. 4. **Skills Execute Actions in Isolated Sandbox:** When action is required, the agent invokes Skills from the 5,700+ plugin library — running Python, R, or shell code in an isolated sandbox, browsing the web, querying databases, sending alerts, or updating files — all within defense-in-depth security boundaries. 5. **Results Are Written Back to Memory:** Outputs, decisions, and observations from each run are persisted back to the agent's memory layer. This creates a continuous, auditable log of autonomous activity that informs future heartbeat cycles and supports human review. 6. **Alerts and Outputs Route to Any Channel:** The Gateway layer delivers agent outputs — reports, alerts, summaries, escalations — to any of 12+ supported channels including Slack, Teams, email, WhatsApp, or custom webhooks, closing the loop with human stakeholders when needed. ## Features ### Cron-Based and Event-Driven Scheduling Full cron expression support for time-based scheduling, plus event-driven triggers based on file system changes, API polling results, data thresholds, or external webhooks. Agents act when it matters, not just when the clock ticks. ### Persistent Cross-Session Memory Each agent maintains state across every heartbeat cycle using Markdown-based persistent memory with SQLite vector and keyword search. Agents remember what they did, what changed, and what still needs attention — enabling longitudinal autonomous workflows. ### Isolated Sandbox Code Execution Scheduled agents execute real code — Python, R, shell, SQL — inside isolated computing environments. Container isolation, network restrictions, resource limits, and audit trails ensure autonomous execution is safe, auditable, and contained. ### Multi-Agent Parallel Scheduling Deploy multiple agents on independent heartbeat schedules within a single platform instance. Agents can operate in parallel, hand off tasks to one another, or aggregate results — supporting complex, multi-step autonomous pipelines. ### Model-Agnostic Orchestration The Brain layer is fully model-agnostic. Scheduled agents can use GPT-4, Claude, Gemini, Llama, Mistral, or any custom model. Switch models per agent, per task, or per cost threshold without rewriting scheduling logic. ### Full Audit Trail and Observability Every heartbeat cycle — what the agent checked, what it decided, what it executed, and what it produced — is logged with timestamps and stored for audit. Supports compliance, debugging, and human oversight of autonomous operations. ### Self-Hosted on Any Infrastructure Deploy the Heartbeat system on-premises, in a private cloud, or air-gapped environments. No dependency on vendor scheduling infrastructure. Meets data residency, sovereignty, and compliance requirements for regulated industries. ## With vs. Without | Aspect | Without | With | |--------|---------|------| | Agent Activation | Agents only act when a human sends a prompt. No activity between interactions. | Agents wake autonomously on cron schedules or event triggers, acting without any human prompt. | | Memory Across Runs | Each session starts fresh. No awareness of prior actions, decisions, or observations. | Persistent Markdown memory with vector and keyword search gives agents full recall across every heartbeat cycle. | | Code Execution in Scheduled Tasks | No real code execution. Scheduled outputs are limited to text generation. | Agents execute Python, R, shell, and SQL in isolated sandboxes during every scheduled run, with full package support. | | Scheduling Infrastructure | Requires custom cron scripts, task queues, and glue code maintained by engineering teams. | Native Heartbeat system with cron expressions, event triggers, and missed-run recovery — no custom infrastructure required. | | Security of Autonomous Execution | Autonomous scripts run with broad system access, creating significant security and compliance risk. | Defense-in-depth sandbox isolation (NanoClaw/IronClaw) with network restrictions, resource limits, and full audit trails. | | Deployment Sovereignty | Scheduling tied to vendor cloud infrastructure. No air-gap or on-premises option. | Fully self-hosted on any infrastructure including air-gapped environments. No external scheduling dependencies. | | Observability and Audit | No structured record of what autonomous processes did, decided, or produced between human interactions. | Every heartbeat cycle produces a timestamped, structured audit log of agent reasoning, actions taken, and outputs generated. | ## FAQ **Q: How often do ibl.ai agents run on the Heartbeat schedule by default?** The default Heartbeat interval is every 30 minutes, but this is fully configurable. You can set agents to run as frequently as every 30 seconds or as infrequently as once a week using standard cron expressions or interval-based timers. **Q: Can agents be triggered by events rather than just a fixed schedule?** Yes. In addition to cron-based scheduling, agents support event-driven triggers including file system changes, API polling results, incoming webhooks, and data threshold conditions. Agents act when something meaningful happens, not just when the clock ticks. **Q: How does an agent know what it did in a previous scheduled run?** ibl.ai agents use a persistent memory layer — structured Markdown files indexed with SQLite vector and keyword search — that survives across heartbeat cycles. Each run reads prior state, updates it with new observations, and writes results back, enabling longitudinal autonomous workflows. **Q: Is it safe to let agents execute code autonomously on a schedule?** Yes. All scheduled code execution happens inside isolated sandbox environments with defense-in-depth security. ibl.ai supports three security models — NanoClaw (OS-level container isolation), IronClaw (five independent security layers), and OpenClaw (application-level permission controls) — with full audit trails for every execution. **Q: Can I run multiple agents on different schedules within the same platform?** Yes. Each agent has its own independent Heartbeat configuration. You can run dozens of agents simultaneously on different schedules, each with its own memory namespace, skill permissions, and output routing — all within a single ibl.ai deployment. **Q: Can scheduled agents be deployed in air-gapped or on-premises environments?** Yes. The Heartbeat scheduling system is fully self-hosted with no mandatory external dependencies. ibl.ai deployments run on bare metal, private cloud, Kubernetes, or air-gapped infrastructure, making it suitable for defense, government, and regulated enterprise environments. **Q: What can a scheduled agent actually do when it wakes up?** A scheduled agent can execute Python, R, shell, or SQL code in a sandbox; browse the web; query databases; read and write files; call external APIs; send alerts via Slack, Teams, email, or 9 other channels; and invoke any of 5,700+ OpenClaw Skills — all autonomously within its configured permissions. **Q: How does autonomous scheduling differ from what GPTs or Gems offer?** GPTs and Gems are reactive-only — they require a human prompt to do anything. ibl.ai's Heartbeat system enables genuinely proactive agents that wake, reason, and act on their own. Combined with persistent memory, real code execution, and self-hosted deployment, there is no comparable capability in consumer AI platforms.