Table of contents
Identify KPI Sources
Common KPI sources:
- Google Analytics: Traffic, users, bounce rate
- Stripe: Revenue, MRR, churn
- GitHub: Issues, PRs, releases
- Custom APIs: Business-specific metrics
- Database queries: User counts, orders
Create KPI Prompts
Create ~/.openclaw/workspace/prompts/kpi-revenue.md:
# Revenue KPI Check
Fetch today's revenue from Stripe dashboard.
Compare to yesterday and last week.
Highlight any drop >10%.
Include MRR and new subscriptions.
Set Up Alerts
Create ~/.openclaw/workspace/prompts/kpi-alerts.md:
# KPI Alert Rules
Alert if:
- Revenue drops >10% day-over-day
- Traffic drops >20% week-over-week
- Error rate >5%
- New users <10 per day
Send alerts to Slack and Telegram immediately.
Schedule Reports
Add to ~/.openclaw/openclaw.json:
{
"automation": {
"cron": {
"kpi-daily": {
"schedule": "0 9 * * *",
"prompt": "file:prompts/kpi-revenue.md",
"target": "slack"
},
"kpi-alerts": {
"schedule": "*/15 * * * *",
"prompt": "file:prompts/kpi-alerts.md",
"target": ["slack", "telegram"]
}
}
}
}
Example KPIs
Revenue Monitoring
Check Stripe dashboard for today's revenue.
Compare to target of $1,000/day.
Send alert if below $800.
Website Traffic
Fetch Google Analytics real-time users.
Alert if <100 during business hours.
GitHub Activity
List open issues and PRs.
Flag any PRs older than 7 days.
Next Steps
FAQ
Q: Can OpenClaw access password-protected dashboards?
A: Yes, but store credentials securely. Use environment variables.
Q: How do I handle API rate limits?
A: Use caching and respect rate limits. Schedule checks accordingly.
Q: Can I create visual dashboards?
A: OpenClaw can capture screenshots and send them, but doesn't build dashboards.
Q: What if a dashboard is down?
A: Configure fallback alerts and retry logic.