Automation
OpenClaw (formerly Moltbot) supports powerful automation features. Schedule tasks, respond to webhooks, process emails in real-time, and poll for changes.
Cron Jobs
Schedule tasks to run at specific times or intervals.
Webhooks
Trigger actions when external services send events.
Gmail PubSub
React to emails in real-time with Google PubSub.
Polls
Periodically check sources for changes or updates.
Schedule tasks using standard cron syntax. OpenClaw will execute the specified action at the scheduled time.
{
"automation": {
"cron": [
{
"name": "morning-briefing",
"schedule": "0 8 * * *",
"action": "Send me a morning briefing with weather, calendar, and top news",
"enabled": true
},
{
"name": "weekly-report",
"schedule": "0 17 * * 5",
"action": "Compile a weekly summary of my tasks and achievements",
"enabled": true
}
]
}
}Common cron schedules:
0 8 * * *— Every day at 8:00 AM0 9 * * 1-5— Weekdays at 9:00 AM*/30 * * * *— Every 30 minutes0 0 1 * *— First day of each monthReceive webhooks from external services and trigger AI actions. Perfect for integrating with e-commerce, CRM, and other platforms.
{
"automation": {
"webhooks": {
"enabled": true,
"port": 8080,
"endpoints": [
{
"path": "/shopify/orders",
"secret": "your-webhook-secret",
"action": "Process new Shopify order and notify me"
},
{
"path": "/github/push",
"secret": "github-secret",
"action": "Summarize new commits and alert on breaking changes"
}
]
}
}
}Your webhook URL will be: https://your-server:8080/shopify/orders
Process emails in real-time using Google Cloud PubSub. No polling needed - get instant notifications when emails arrive.
{
"automation": {
"gmail": {
"enabled": true,
"credentials": "path/to/service-account.json",
"topic": "projects/your-project/topics/gmail-notifications",
"subscription": "projects/your-project/subscriptions/openclaw-sub",
"rules": [
{
"filter": "from:important@client.com",
"action": "Summarize and send to Slack #urgent"
},
{
"filter": "subject:invoice",
"action": "Extract amount and add to expenses spreadsheet"
}
]
}
}
}- • Requires Google Cloud project with PubSub enabled
- • Service account with Gmail API access
- • Real-time email processing without polling
Periodically check websites, APIs, or files for changes. Great for monitoring prices, stock availability, or content updates.
{
"automation": {
"polls": [
{
"name": "price-monitor",
"url": "https://example.com/product",
"interval": "1h",
"selector": ".price",
"condition": "value < 100",
"action": "Alert me that the price dropped!"
},
{
"name": "api-check",
"url": "https://api.example.com/status",
"interval": "5m",
"jq": ".status",
"condition": "value != 'healthy'",
"action": "Warn me that the API is down"
}
]
}
}interval— Polling frequency (e.g., 5m, 1h, 1d)selector— CSS selector for web pagesjq— JQ expression for JSON APIscondition— When to trigger the action
Automation Use Cases
Morning Briefing
Get weather, calendar, and news summary every morning.
Cron: 0 7 * * *Order Notifications
Instant alerts when new orders come in.
Webhook: ShopifyEmail Triage
Automatically categorize and summarize emails.
Gmail PubSubPrice Monitoring
Track product prices and alert on drops.
Poll: Every hourWeekly Reports
Compile and send weekly performance reports.
Cron: 0 17 * * 5Social Media Monitoring
Track brand mentions across platforms.
Poll: Every 15 minFull Documentation
Read the complete automation configuration guide.
Automate Your Workflows
Start automating with cron jobs, webhooks, and more.