Creates a one-shot cron job that delivers a reminder to Telegram at the specified time.
Extract:
| Field | Notes |
|---|---|
| ------- | ------- |
text | What to remember (verbatim or paraphrased, concise) |
when | When to deliver — relative or absolute |
If when is ambiguous, ask for clarification before proceeding.
when valueRelative durations → pass directly as :
20m2h1dAbsolute times → convert to ISO 8601 in Europe/Paris timezone:
TZ=Europe/Paris date -d "tomorrow 09:00" --iso-8601=seconds
# → 2026-03-03T09:00:00+01:00
Show a summary and ask for confirmation:
Set this reminder?
- What: <text>
- When: <human-readable time>
Only proceed after the user confirms.
This is the only way to create a reminder. Do not use any other method.
{
"tool": "exec",
"command": "bash {baseDir}/scripts/remind.sh \"<when>\" \"<text>\""
}
The script handles everything: chat ID resolution, cron job creation, and verification.
The script prints the result. Look for:
OK: reminder-xxx is scheduled → successERROR: ... → report the exact error to the userDo not confirm success unless the script output says "OK".
Only after seeing "OK" in the script output:
⏰ Reminder set!
📝 <text>
🕐 <human-readable time>
| User says | when | text |
|---|---|---|
| ----------- | -------- | -------- |
| "in 20 minutes, remind me to take out the laundry" | 20m | Take out the laundry |
| "remind me to call Alice tomorrow at 14h" | 2026-03-03T14:00:00+01:00 | Call Alice |
| "in 2 hours: check the oven" | 2h | Check the oven |
| "friday at 9am: team standup" | 2026-03-06T09:00:00+01:00 | Team standup |
共 1 个版本