Calendar
At a glance
| Topic | Detail |
|---|---|
| What it adds | One calendar for each user, inside LocalAI. A chat or a saved agent reads and changes events. There is no account to connect. |
| Needs | Nothing. There’s no account to connect. |
Ask a chat or a saved agent “what is on Thursday?” or “add dinner with Sam at 8” and it reads or changes your calendar. Install it and ask. There’s nothing to connect. Writes run at once, with no confirmation card.
What it keeps
There is one calendar for each user, shared by all of that user’s chats and agents. It is one SQLite file in the data directory of the add-on. An event has:
- a title, a start and an end, or a whole day (an all-day event);
- notes, a place and the attendees, each as free text;
- a time zone, as an IANA name such as
Europe/Rome, and optionally a repeat.
Set the default time zone once, on the Calendar page (it starts as the zone of the server). A new event uses it unless you or the agent name another one. An event keeps the zone it was written in when you change the default.
A repeat is daily, weekly, monthly or yearly, with an interval (“every 2 weeks”) and an optional last day. The local time stays the same across a change of daylight saving time. A monthly repeat on the 31st skips months that have no 31st. You can change or delete the whole series, or skip one occurrence.
It doesn’t sync with other calendars, send invitations, hold more than one calendar per user, or send reminders. To move events elsewhere, export the whole calendar as one ICS file from the page.
The page
Open Calendar in the add-ons. It has a month view, an agenda list of the next 60 days, a form to create or change an event, the default zone and the export button. Click a day to add an event, or an event to change, skip or delete it. The page speaks the language of the web UI.
What the agents can do
| Tool | Does |
|---|---|
events-list | Lists a range of days with repeats expanded; with no arguments, today and six more days. |
events-search | Finds events by words in the title, notes, place or attendees. |
event-get | Reads one event in full. |
event-create, event-update, event-delete | Add, change and delete an event. With occurrence (a date), event-delete skips only that day of a repeating event. |
Reads and writes both run immediately, as the signed-in user, with no confirmation card. A trigger or a job can write only with the act.addons grant. The add-on ships a skill that tells the model when to use the tools.
In a messaging chat, the owner and the senders paired with the bot can read and change the calendar. Every other sender the bot lets in can read it but not change it (the tools.write rule, see Add-ons that keep the owner’s own data).
Events for automations and watches
The calendar reports each change: calendar.event.created (an event is added), calendar.event.updated (changed, or a day of a repeating event skipped) and calendar.event.deleted. An automation can start from them, and a watch can remind you of an event. Each one carries these fields, under event: the ID, the title, the next start (a time; absent when no occurrence is left), the start and end in the zone of the event, whether it lasts all day, the zone, the place, the attendees and the notes. A removal carries only the ID and the title.
When a watch handles an added or changed event, the calendar asks the model to consider a prep task with a lead time for a call or meeting with other people.
Limits
An event title has at most 200 characters, notes 4000, a place 200 and attendees 500. One user keeps at most 5000 events. A listing covers at most 400 days and returns at most 500 occurrences; the page says when a list was cut.