OpenClaw HEARTBEAT.md Templates
HEARTBEAT.md is where you define scheduled agent behavior. Your agent reads it on every heartbeat poll and runs the tasks you listed. Think of it as cron for your AI agent.
How HEARTBEAT.md works
HEARTBEAT.md is a markdown file that lives in your OpenClaw workspace. Your agent checks it on a regular interval (the heartbeat). When it finds tasks that match the current time or condition, it runs them.
# HEARTBEAT.md
Every weekday at 8am:
1. Check inbox for new emails
2. Flag anything from clients or with urgent keywords
3. Summarize the rest in one message
4. Send to Telegram
Every 30 minutes during business hours:
1. Check GitHub Actions for failed workflows
2. If any failed, send error summary to SlackThat is a complete HEARTBEAT.md. Two scheduled tasks. The agent handles the timing and execution. You write what to do, not how to schedule it.
All HEARTBEAT.md templates
GitHub PR Reviewer
Auto-review new PRs during business hours. Post summaries, flag issues.
Social Media Monitor
Track mentions of your brand across platforms. Daily digest of what people are saying.
Calendar Prep
Brief you on upcoming meetings with context from email and docs.
Meeting Notes Organizer
After each meeting, prompt for notes. Format and file them in Drive.
Inbox Zero Coach
Nudge you to process emails. Track your inbox count over time.
Expense Logger
Watch for receipt emails. Extract amounts and categorize spending.
CI Monitor
Watch GitHub Actions. Alert on failures with the relevant logs.
Deploy Tracker
Track deployments across repos. Daily changelog of what shipped.
Dependency Checker
Weekly scan for outdated or vulnerable dependencies across repos.
Issue Triage
Label and prioritize new GitHub issues. Route to the right people.
Content Scheduler
Draft social posts from your content calendar. Queue them for review.
SEO Tracker
Monitor keyword rankings and page performance weekly.
Competitor Watch
Track competitor launches, blog posts, and pricing changes.
Newsletter Curator
Collect interesting links throughout the week. Draft a newsletter on Friday.
Invoice Tracker
Track sent invoices. Alert on overdue payments.
Lead Qualifier
Score inbound leads from form submissions. Route hot leads immediately.
Contract Renewal Tracker
Track contract end dates. Start renewal conversations early.
Health Tracker
Daily check-in on sleep, exercise, and mood. Weekly trends.
Daily Journal Prompt
Evening journal prompts. Save entries, surface patterns over time.
Uptime Monitor
Check your sites every 5 minutes. Alert on downtime.
API Cost Tracker
Monitor API usage and costs. Alert on spending spikes.
Security Scanner
Weekly security checks. SSL certs, exposed ports, dependency vulnerabilities.
Error Log Watcher
Watch application logs for errors and anomalies. Smart alerting.
SSL Cert Monitor
Check SSL certificate expiry for all your domains. Alert at 30, 14, and 7 days.
API Health Checker
Monitor critical API endpoints for latency and error rates. Smart alerting.
Competitor Price Tracker
Monitor competitor pricing pages daily. Alert on any price changes.
Review Monitor
Track app store, G2, and Google reviews. Respond fast to negative ones.
Morning Briefing
Start every day with a 60-second brief: weather, calendar, tasks, and news.
Weekly Review
Friday EOD summary: what shipped, what slipped, what's next week.
Finance Tracker
Monthly spending summary. Tracks categories, flags unusual charges.
Customer Support Router
Classify inbound support emails. Route to the right person. Track response times.
Inventory Monitor
Track stock levels in a Google Sheet. Alert on low inventory before it runs out.
Weather + Commute Brief
Morning weather check with commute timing advice based on conditions.
Customer Success Monitor
Watches support tickets and NPS scores. Flags accounts that need attention.
Finance Ops Reconciler
Reconciles transactions between payment processor and your ledger. Flags mismatches.
Content Calendar Manager
Manages your content pipeline. Tracks drafts, deadlines, and publishing schedules.
On-Call Rotation Manager
Manages on-call schedules. Sends reminders before shifts and handles swap requests.
Sprint Retro Generator
Generates sprint retrospective summaries from git history, issues, and team input.
Docs Freshness Checker
Checks if documentation is outdated by comparing doc dates with code changes.
Git Branch Cleaner
Finds and reports stale git branches. Helps keep your repo tidy.
Standup Reminder
Reminds your team to post standups. Tracks who posted and who didn't.
Email Follow-up Tracker
Tracks emails that need a reply. Reminds you if you haven't followed up.
Team Mood Pulse
Weekly anonymous team sentiment check. Tracks morale trends over time.
Sales Pipeline Reporter
Reports on your sales pipeline daily. Tracks deals, stages, and forecast.
Churn Risk Detector
Detects churn signals from usage patterns and support tickets. Alerts CSMs early.
Blog SEO Auditor
Audits blog posts for SEO best practices. Flags missing meta tags, thin content, and more.
Influencer Tracker
Tracks influencer mentions of your brand. Monitors reach and sentiment.
Ad Spend Monitor
Monitors ad spend across platforms. Alerts on budget overruns and poor performers.
Sleep Tracker
Logs your sleep data and analyzes patterns. Weekly insights on sleep quality.
Workout Logger
Logs your workouts and tracks progress. Weekly performance summaries.
Learning Path Tracker
Tracks courses, tutorials, and learning goals. Keeps you accountable.
DNS Monitor
Monitors DNS records for your domains. Alerts on unexpected changes.
Performance Budget Checker
Checks web performance budgets. Alerts when pages exceed size or load time limits.
Container Health Monitor
Monitors Docker container status and resource usage. Alerts on unhealthy containers.
Log Anomaly Detector
Detects anomalies in application logs by tracking error rate patterns.
Database Backup Verifier
Verifies that database backups completed successfully. Alerts on failures or gaps.
GitHub Actions Cost Tracker
Tracks GitHub Actions minutes and costs across your repos. Spots runaway workflows.
Meeting Action Tracker
Tracks action items from meetings. Sends reminders until items are marked done.
Knowledge Base Updater
Keeps your internal wiki or knowledge base current. Flags stale articles.
HEARTBEAT.md vs SOUL.md
| HEARTBEAT.md | SOUL.md | |
|---|---|---|
| Purpose | Scheduled tasks | Personality and behavior |
| When it runs | On heartbeat interval | Loaded at startup |
| Best for | Cron-like jobs, monitoring | Always-on behavior, rules |
| Example | Morning email digest | Code review assistant |
| Trigger | Time-based | Message-based |
Need SOUL.md templates too?
The full OpenClaw library includes both SOUL.md and HEARTBEAT.md templates. Mix and match to build your ideal agent setup.
Browse all OpenClaw templates →