Cron Jobs¶
Cron jobs run AI prompts on a schedule. They generate briefings, summaries, research reports, and more -- delivered to your inbox or written to files.

How Cron Jobs Work¶
- You define a job with a schedule (cron expression), a prompt template, and an output destination.
- APScheduler fires the job at the scheduled time.
- The executor loads the prompt, gathers context, and sends it to the configured AI model.
- The model can use all 43 tools (same as the advisor).
- The result goes to your inbox, a file, or stdout.
Default Jobs¶
Fresh profiles include two example jobs:
| Job | Schedule | Description |
|---|---|---|
daily-briefing | 8:30 Mon-Fri | Morning overview of tasks, inbox, budgets |
weekly-summary | 17:00 Friday | Week recap with hours, completed tasks |
Both are disabled by default. Enable them in Settings > Cron or:
Creating a Job¶
Open Cron in the sidebar. Click Add Job. Fill in:
- ID: unique identifier (e.g.,
weekly-report) - Name: display name
- Schedule: cron expression
- Model: AI model to use
- Prompt: the prompt template
- Output: where results go (
inboxor a file path)
Cron Expressions¶
Standard five-field cron syntax:
┌─── minute (0-59)
│ ┌─── hour (0-23)
│ │ ┌─── day of month (1-31)
│ │ │ ┌─── month (1-12)
│ │ │ │ ┌─── day of week (0-6, Mon=1)
│ │ │ │ │
* * * * *
Examples:
| Expression | Meaning |
|---|---|
30 8 * * 1-5 | 8:30 AM, Monday through Friday |
0 17 * * 5 | 5:00 PM every Friday |
0 9 1 * * | 9:00 AM on the 1st of each month |
*/30 * * * * | Every 30 minutes |
Prompt Templates¶
Prompts are Markdown files stored in prompts/ or the profile directory. They support YAML frontmatter for pre-fetch URLs:
---
fetch:
- https://news.ycombinator.com/rss
---
Summarize the top tech news today. Focus on items relevant
to my current projects.
Context about my projects:
- Use the list_tasks tool to see what I'm working on
- Check my customers with list_customers
Template variables:
| Variable | Value |
|---|---|
{today} | Current date |
{fetch_results} | Content from fetched URLs |
Managing Jobs¶
kai cron list # List all jobs
kai cron show daily-briefing # Show job details
kai cron trigger daily-briefing # Run now
kai cron disable daily-briefing # Pause
kai cron enable daily-briefing # Resume
kai cron delete daily-briefing # Remove
Execution History¶
View past runs with status, output, and error messages:
In the UI, the history pane shows sortable columns with execution results. Click a row to see the full output. Move outputs to inbox, tasks, notes, or the knowledge base.
Kaisho AI Toggle¶
Each job can individually use Kaisho Cloud AI instead of the configured model. Enable this per job when you want cloud-powered responses without changing the global model setting.