Skip to content

Documentation / 1.12.0

Schedule an automation

Have Toskar check something on a schedule, or when something changes, and tell you only when it matters.

An automation is a task Toskar runs for you: a price watch, a back-in-stock check, a morning news brief, a page that might change. You describe it in ordinary words. Toskar fills in when it runs, what it does, and when to tell you.

Toskar runs it in the background, even with the window closed. The desktop app stops when you quit, unless Settings keeps Toskar running in the background.

What you need

Create an automation

  1. Open Automations and choose New automation, or pick an idea such as Price watch or Morning news brief.
  2. Describe it in a sentence, such as: every morning at 8:00 AM, check this product and tell me if the price is below $500. Choose Fill in the details.
  3. Read the name, task, schedule, and notification Toskar filled in, and the Summary above Create automation. Change anything it guessed wrong.
  4. Choose Test run to try it once without saving, then Create automation.
New automation form filled in from the sentence about checking a price below $500 every morning at 8:00 AM
Fill in the details turns the sentence into a daily 8:00 AM task and a price notification. The task stays in ordinary words.

Toskar understands schedules such as every morning at 8:00 AM, every six hours, every Friday (at 8:00 AM unless you name a time), and once tomorrow at 9:00 AM. Write in English or the App language, with times such as 18:30 and prices in your currency, such as 500 € or 5万円.

The profile, model, time zone, and tools are under Advanced. Model Auto picks a model for each run. Automations use memories and connected knowledge as chat does.

When it runs

RunsWhat starts it
On its scheduleA time: once, daily, weekly, monthly, every few hours, or a cron expression.
When a web page changesToskar checks the page on a schedule and runs only when it changed, telling the task what changed.
When a feed has new postsNew posts on a site's feed, checked on a schedule.
When a file or folder changesA change to a file or folder on this computer.
When another service calls its link (webhook)A POST to the automation's link. Its body, up to 64 KB, is given to the task as data.
When a device changesA Home Assistant device, such as a door contact or a person sensor, changing, or changing to a state you choose.
After another automationAnother automation finishing, or only when it notifies. It gets that automation's result.
The automation form with Runs set to When a web page changes, a Link field, how often to check, and the Notify me choices
A trigger that watches a page: Toskar checks it hourly and runs the task only when it changed.

Look at cameras starts each run with a picture from up to a few Home Assistant cameras, shown to a model that can see. A webhook's link is shown once, when you make it on the automation's page, and anyone with the link can start the automation.

When you hear about it

Notify meWhen
When the condition is trueThe price is below or above your amount, an item becomes available, or the result is significant.
When the result changesA result differs from the last one. The first run is the baseline.
Every time it runsAfter every successful run.
Only when it failsA run fails.
Don't notify meNever. The result is kept in its history.

History says why a notice was or wasn't sent, such as a price that wasn't below your amount. Notices go to the bell, and to the places Notifications describes.

Run, pause, and history

Automations list with a morning price check selected, its next run, and a history entry that was notified
The list shows each automation's schedule, last result, and next run. The detail keeps Run now, Pause, Edit, Delete, and the history.
  • Run now runs it once right away, and keeps its next scheduled run. A paused automation stays paused.
  • Pause and Resume turn it off and on. Edit changes it, and Delete removes it and its history.
  • History lists each run, newest first: when it ran, its result, whether you were told, and the model and computer it used.
  • After a restart, a missed daily or weekly run happens once, not once for every missed day.

Tools and approvals

With no tools chosen, a run can use the read-only tools the profile allows. Tools you choose are approved when you save, and ones that change things are listed apart. A run that reaches a tool you didn't approve skips it, finishes, and sends a notification naming the tool.

From the command line

toskarctl automations does the same from a terminal: list, create, run, pause, resume, and more. parse shows how Toskar reads a sentence, without saving anything.

toskarctl automations parse "every friday at 9:00 AM, summarize this week's releases"

You’ll see something like:

{
  "name": "…",
  "prompt": "Summarize this week's releases.",
  "schedule": {
    "kind": "weekly",
…"hour": 9,
    "weekday": 5
  },
…}

It read a weekly schedule at 9:00 on weekday 5, Friday (Sunday is 0), in this computer's time zone. create with --request and the same sentence saves it.

toskarctl automations create --name "Morning brief" --prompt "Summarize today's AI news in five lines" --schedule daily --at 08:00

You’ll see something like:

{
  "id": "…",
  "name": "Morning brief",
  "enabled": true,
  "schedule": {
    "kind": "daily",
…"next_run_at": "…"…}

It talks to http://127.0.0.1:7331 unless TOSKAR_URL is set, and a Toskar on another computer needs TOSKAR_API_KEY.

Troubleshooting

What you seeWhat to do
Create automation stays unavailableInstall a model first. Saving waits for one.
It didn't run at its timeToskar wasn't running then. In the desktop app, have Settings keep Toskar running in the background. A missed run happens once when it starts again.
A run timed out or lost its connectionToskar tries the same run again up to three times, after one minute and then five. You're told if those fail too.
It paused itselfIt ran out of memory twice in a row. Choose a smaller model under Advanced, then Resume.
A notification names a tool it skippedEdit the automation and approve that tool, if you want it to use it.

Tip: An automation waits while you chat, and for 20 seconds after, so it doesn't load a model between your messages.

These pages describe Toskar 1.12.0. Download 1.12.0 and its release notes ↗ · Need help? Report a bug or request a feature ↗

Something missing or wrong?

Kind

Sent with it: docs 1.12.0. It becomes a public issue in toskar-core.

Schedule an automation · Toskar 1.12.0 documentation