Skip to main content

Home widgets and live pages

Add small tiles to Home that show a list, a number or one of your pages, and have a schedule keep them current.

Note

This needs the chats and their files. The Pages and Scheduled triggers permissions are off for new users on a server with accounts. An administrator turns them on in the permissions of each user. Administrators always have them. The server option LOCALAI_DISABLE_TRIGGERS turns triggers off for everyone.

Kinds of tile

KindShowsData
listA list of items, each with a label and an optional noteA JSON file in your home
metricA number, a note and a small line chartA JSON file in your home
chatsYour last chatsNo file needed
pageOne of your pages, in compact modeThe page itself

A tile reads a JSON file in your home. It can’t call a live service, and a page can’t reach the network. The only chart type is a line chart.

Add, remove and reorder

  1. Open Home and choose Customise Home. It opens Edit layout.
  2. Add a widget, remove one, or change the order.
  3. Save.

You can also ask the assistant: “Show my open tasks on Home”. It writes the data file and adds the widget to LocalAI/home.json. Home is per user. There is no shared Home for a group. Home has at most 12 widgets, and at most 3 of them can be page tiles. You cannot change the size of a tile from Home. A page sets its own size in its page.json.

Make a page a tile

A page can be a tile when its page.json has a widget block with a size of small, medium or large. Pick the page in Edit layout (from Customise Home), or ask the assistant to put it on Home. See A page on Home.

Keep a tile current

A trigger starts a run of the assistant. The run rewrites a file, and the tile reads it.

  • A schedule trigger runs daily, on weekdays, weekly, monthly, once, or from a cron expression. A schedule trigger runs at most once every 5 minutes, however it is made.
  • A file trigger runs when a file arrives in a folder. A page can write that file. See A page that starts a run.

There is no trigger that a web request can start from outside.

Example:

  1. Ask: “Every morning at 8, list my open tasks from my notes on Home.”
  2. The assistant writes data/tasks.json, adds a list widget for it, and proposes a trigger: daily at 08:00, writes data/tasks.json.
  3. Review the trigger card and choose Create.
  4. Each morning the trigger runs one chat turn for you and rewrites the file. The tile shows the new list.

Each run uses a model turn, so it costs tokens. See Saved agents, triggers and notifications.

Limits to know

  • A tile shows its last valid data and marks it as stale when a file breaks its schema.
  • A trigger run is an ordinary chat turn. It can fail like one. Test with a short schedule first, but not under 5 minutes.