Scheduling AI Agents: A Practical Guide to Cron-Based Orchestration
Mentiko Team
Running an agent chain once is useful. Running it every morning at 6am without thinking about it is transformative. Scheduling is what turns agent chains from demos into infrastructure.
This guide covers everything you need to know about scheduling agent chains with cron expressions.
Cron basics for agent chains
A cron expression has five fields:
minute hour day-of-month month day-of-week
0 6 * * 1-5
This means: at 6:00am, every weekday. Your chain runs, agents execute, results land in your inbox before you finish your coffee.
Common patterns:
| Schedule | Cron | Use case |
|---|---|---|
| Every weekday at 6am | 0 6 * * 1-5 | Content pipeline, standup prep |
| Every hour | 0 * * * * | Ticket triage, monitoring |
| Every Monday at 9am | 0 9 * * 1 | Weekly research report |
| Twice daily | 0 6,18 * * * | Competitor monitoring AM/PM |
| First of month | 0 9 1 * * | Monthly analytics report |
| Every 15 minutes | */15 * * * * | Real-time alert processing |
Choosing the right frequency
The right schedule depends on two things: how fast the data changes and how quickly you need results.
Real-time (every 1-15 minutes): Incident response, alert triage, critical monitoring. Only use this if delayed response costs money.
Hourly: Support ticket triage, social media monitoring, data quality checks. Good balance of freshness and cost.
Daily: Content pipelines, competitor monitoring, research briefs, standup prep. The sweet spot for most automation.
Weekly: Deep research reports, analytics summaries, trend analysis. For tasks that need more context and produce longer outputs.
Monthly: Compliance audits, vendor reviews, strategic analysis. For expensive, thorough processes.
Rule of thumb: Start daily. Move to hourly only if daily isn't fresh enough. Move to weekly only if daily is wasteful.
Timezone handling
Your cron runs in the timezone of your Mentiko instance. If your server is in UTC but your team is in Pacific Time, "9am" means different things.
Mentiko's scheduler is timezone-aware. Set your timezone in workspace settings, and cron expressions are interpreted in that timezone. Daylight saving time transitions are handled automatically.
Best practice: Set your instance timezone to match your team's primary timezone. If you have a global team, pick the timezone where most stakeholders consume the output.
Overlap prevention
What happens when a scheduled chain is still running when the next trigger fires?
Without overlap prevention, you get two instances of the same chain running simultaneously. They might conflict, duplicate work, or corrupt shared state.
Mentiko handles this automatically: if a chain is already running when its schedule fires, the new execution is skipped and logged. You can see skipped executions in the run history.
Manual override: If you need to force-run a chain even while another instance is active, you can trigger it manually from the dashboard. The scheduler only prevents automatic overlap.
Cost-aware scheduling
Every scheduled chain run incurs LLM API costs. A 4-agent chain that costs $0.30 per run:
| Frequency | Runs/month | Monthly API cost | |---|---|---| | Every 15 min | 2,880 | $864 | | Hourly | 720 | $216 | | Daily | 30 | $9 | | Weekly | 4 | $1.20 |
The difference between hourly and daily is $207/month for one chain. Multiply by 5 chains and scheduling decisions become budget decisions.
Optimize by: Using cheaper models for frequent chains. Reserve GPT/Claude Opus for weekly deep analysis. Use faster/cheaper models for hourly monitoring.
Common scheduling patterns
The morning briefing
0 6 * * 1-5 # Weekdays at 6am
Chain: Researcher -> Analyzer -> Reporter Output: Email with overnight developments, competitor changes, key metrics. Ready before standup.
The continuous monitor
*/30 * * * * # Every 30 minutes
Chain: Checker -> Classifier -> Alerter Output: Only fires alerts when something is detected. Silent otherwise. Good for uptime monitoring, price changes, security scanning.
The content machine
0 5 * * 1 # Mondays at 5am
Chain: TopicSelector -> Researcher -> Writer -> Editor -> Publisher Output: One polished blog post per week, published before the work week starts.
The end-of-day digest
0 17 * * 1-5 # Weekdays at 5pm
Chain: Collector -> Summarizer -> Formatter -> Distributor Output: Summary of the day's events -- tickets closed, PRs merged, incidents resolved, customer feedback received.
The weekend batch
0 2 * * 6 # Saturdays at 2am
Chain: DeepResearcher -> Analyzer -> ReportWriter -> Archiver Output: Thorough weekly analysis that takes advantage of low-activity hours for heavy processing.
Monitoring scheduled chains
Set up alerts for:
- Failed runs: The chain didn't complete successfully
- Skipped runs: Overlap prevention kicked in (might indicate the chain is too slow for its schedule)
- Slow runs: The chain took longer than usual (might indicate API issues or increased data volume)
- No runs: The schedule didn't fire at all (server issue)
Mentiko's monitoring dashboard shows all of these. Set up email or webhook notifications for failures.
Getting started with scheduling
- Build your chain and run it manually first
- Verify the output quality
- Go to Schedules and create a new schedule
- Select your chain and workspace
- Enter the cron expression
- Set the timezone
- Save and let it run
That's it. Your chain now runs on autopilot.
New to agent chains? Build your first one in 5 minutes. Ready to automate? Join the waitlist for early access.
Get new posts in your inbox
No spam. Unsubscribe anytime.