Automated Check-ins (HEARTBEAT.md)
Your AI does not need to wait for you to ask. With HEARTBEAT.md, it checks in on you automatically β like a personal assistant who scans your inbox, calendar, and weather every 30 minutes.
How it works:
HEARTBEAT.md is a file in your workspace that lists what your AI should check periodically. Every ~30 minutes, OpenClaw reads this file and your AI performs the listed tasks.
Example HEARTBEAT.md:
# HEARTBEAT.md
- Check my email for any urgent messages
- Look at my calendar for upcoming events in the next 2 hours
- If itβs before 9am, check the weather for my locationHEARTBEAT vs Cron Jobs β when to use each:
- Heartbeat = periodic patrol. Multiple checks bundled together. Timing can drift. Best for "check a few things every so often."
- Cron = precise schedule. "At 9:00 AM every Monday, send me a weekly summary." Exact timing. One specific task.
Most users start with Heartbeat for general awareness, then add Cron jobs for specific scheduled tasks.
Cost note: Every heartbeat uses API tokens. Keep your HEARTBEAT.md focused β 3-5 items max. An empty HEARTBEAT.md means no automatic checks (and no extra cost).
Key Principle
HEARTBEAT.md turns your AI from reactive to proactive. Instead of waiting for you to ask, it checks in on you. Start small β one task β and build up.
Step-by-Step Instructions
Step 1: Create HEARTBEAT.md
In ~/.openclaw/workspace/, create HEARTBEAT.md.
Step 2: Add one simple task
Start with just one item:
# HEARTBEAT.md
- Check the weather for my location and tell me if I need an umbrellaStep 3: Wait for it
Within 30 minutes, your AI should proactively send you a weather update β without you asking.
Step 4: Add more tasks
Once you see it working, add 2-3 more checks that matter to you. Keep it under 5 items total.
Common Mistakes
- β HEARTBEAT.md is empty or only has comments β An empty file means no checks. Add at least one real task.
- β Too many tasks β Each heartbeat costs tokens. 3-5 focused tasks is the sweet spot. 20 tasks will burn through your API credits fast.
- β Expecting instant results β Heartbeats run every ~30 minutes, not instantly. Be patient after creating the file.