HEARTBEAT.mdmarketingOpenclawv1.0.0

Ad Spend Monitor

Monitors ad spend across platforms. Alerts on budget overruns and poor performers.

Setup time: ~10 min
Model: Haiku
Cost: ~$0.15/day Calculate your exact cost at Clawback
Last updated: Mar 16, 2026
byRunbooks Communitycontributor

Template

HEARTBEAT.md
Daily at 9am:
1. Pull spend data from ad platform APIs (Google Ads, Meta, etc.)
2. Log to "Ad Spend" Google Sheet: date, platform, campaign, spend, clicks, conversions
3. Check against daily budgets:
   - If spend > 120% of daily budget: alert "Overspend: {campaign} at {spend} (budget: {budget})"
   - If spend < 50% of budget: alert "Underspend: {campaign} may be paused or limited"
4. Calculate key metrics: CPC, CPA, ROAS
5. Flag poor performers: campaigns with CPA > 2x target
6. Daily summary: total spend, top campaign, worst campaign
7. Weekly: spend by platform, budget utilization, optimization suggestions

Setup

  1. 1

    Copy the HEARTBEAT.md content below into your OpenClaw workspace at `~/.openclaw/workspace/HEARTBEAT.md`.

  2. 2

    Install the required skills: `clawhub install web_fetch`, `clawhub install gog`, `clawhub install message`.

  3. 3

    Open your agent channel (Telegram or any connected channel) and send a message to confirm it's running.

  4. 4

    Your agent will follow the schedule in HEARTBEAT.md automatically. Check back in 30 minutes to see it in action.

  5. 5

    Customize the template: adjust timing, thresholds, and notification targets to fit your setup.

Tip: The template uses placeholder values like {your brand} or {repo}. Replace these with your actual values before saving.

Install commands

Save the template to your OpenClaw workspace, then install the required skills.

# 1. Save the template
cp <download> ~/.openclaw/workspace/HEARTBEAT.md

# 2. Install skills
clawhub install web_fetch
clawhub install gog
clawhub install message

Version History

v1.0.0Initial releaseMar 16, 2026

Framework

Openclaw

Skills required

Estimated cost

~$0.15/day

on Haiku model

Calculate your exact cost at Clawback

File type

HEARTBEAT.md

Defines scheduled tasks. Runs on a heartbeat interval.

Version

v1.0.0

Updated Mar 16, 2026

Contributor

Runbooks Community

Community submission

Spending too much?

Track and optimize your agent API costs.

Try Clawback →

You might also like