Set up a routine or reminder
create_routineSet up a routine: something Alexein, this person's assistant, does for them on its own. A morning brief of their day (calendar, important email, weather), a weekly update draft, an alert when a given person or kind of email writes or for their Slack mentions, a reminder - once or repeating - or a scheduled task: a request answered on a schedule from their memory, email, calendar, Slack, GitHub or Linear (kind task, spec {"ask": their words, at most 500 characters, "sources": [...]}). Use it when they ask: "brief me on weekdays at 7:15", "tell me when Sara emails", "remind me to drink water every 30 minutes from 9 to 6", "every Monday at 9 summarise my open PRs".
Schedules repeat as people say them, in local time - never tell them one cannot. {"once": "2026-11-20T15:00"}; days and times, several a day if they like, {"at": "09:00" or ["09:00", "13:00"], "days": [1, 2, 3, 4, 5]} (Monday is 1); every N minutes or hours, optionally between times, {"every": 30, "unit": "minutes", "from": "09:00", "to": "18:00", "days": [1, 2, 3, 4, 5]}; monthly {"monthly": [1], "at": "09:00"} (31 is the last day); yearly {"yearly": "11-14", "at": "09:00"}. Add "until": "YYYY-MM-DD" to end on a date. Watches take null. A reminder repeats at most every 5 minutes, anything else every hour. For a frequent reminder with no hours given, pick sensible ones, such as 9:00-18:00 on weekdays, and say so.
Pick sensible defaults and tell them what you picked; ask at most one question. tz is their time zone, required. It reaches them in the Alexein desktop app, and by email unless it runs more than once a day or they ask for somewhere else. A routine only tells them things: it sends and spends nothing for them, and a task asked to send or post drafts it for them to review. A refusal says why in plain words: fix the call, or tell them. Returns the routine, with its title and when it next runs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"kind": "<kind>",
"spec": "<spec>",
"tz": "<tz>"
},
"name": "create_routine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | Yes | Their IANA time zone, e.g. Asia/Karachi. | |
| kind | Yes | brief: a daily brief. weekly: a weekly update draft. email_watch: tell them when an email matches. slack_watch: tell them about Slack mentions or words. reminder: once or repeating. task: a request answered on a schedule. | |
| spec | Yes | {"kind": the same kind, ...}. brief: place {name, lat, lon}, prefs [str]. weekly: about, prefs. email_watch: from [addresses], domains, words, about, urgent. slack_watch: mentions (bool), words, about, urgent. reminder: text, context. task: ask, sources, prefs. | |
| reaches | No | Where it reaches them; leave out for their usual places. | |
| schedule | No | When it runs, local time; null for email_watch and slack_watch. |