Automate workflows with OpenClaw (formerly Clawdbot and Moltbot) using webhooks, cron jobs, and hooks
New to automation? For a hands-on, step-by-step tutorial, check out our Automation Tutorial. This page is a comprehensive reference covering all automation features and configuration options.
OpenClaw provides powerful automation capabilities through webhooks, cron jobs, and hooks. These features allow you to create automated workflows, trigger actions based on events, and integrate with external services.
Webhooks allow external services to trigger OpenClaw actions:
Configure webhooks in your ~/.clawdbot/moltbot.json (file name maintained for backward compatibility):
{
"webhooks": {
"enabled": true,
"endpoints": {
"/webhook/github": {
"handler": "github-webhook-handler"
}
}
}
}
Cron jobs allow scheduled tasks to run automatically:
{
"cron": {
"jobs": [
{
"schedule": "0 9 * * *",
"command": "agent --message 'Daily briefing'"
},
{
"schedule": "*/30 * * * *",
"command": "check-status"
}
]
}
}
OpenClaw supports two scheduling mechanisms:
Use cron for specific time-based tasks, heartbeat for continuous monitoring.
Hooks allow you to intercept and modify events:
OpenClaw can integrate with Gmail via Pub/Sub:
Configure Gmail Pub/Sub in your workspace for email automation.
Schedule a daily briefing that summarizes your day:
{
"cron": {
"jobs": [
{
"schedule": "0 9 * * *",
"command": "agent --message 'Create my daily briefing'"
}
]
}
}
Set up webhook to auto-fix errors from Sentry:
Automate GitHub workflows: