Ai Keeper/Guides/Automation
← All workflows
Collection 07 · Work that runs itself

Automation

Turn a proven prompt or agent into a scheduled job, cron rule, heartbeat, background task, multi-step flow, or signed webhook trigger with bounded retries.

8 workflowsSimple steps + advanced detailsReviewed 2026-11-18

Follow the numbered steps for the everyday path. Open Advanced details for compatibility, settings, technical limits, and deeper checks. Times are estimates; large downloads and model loading can take longer.

Screenshots show the real app with illustrative sample data. They show where controls are; example answers, jobs and telemetry are not measured results. Open any image at full size to follow along.

Find one workflow

Filter this collection by name, outcome, provider, engine, channel, mode, or command.

8 shown

Create and test a scheduled task

Run a known-safe prompt or agent job at a chosen time.

Beginner10–20 minResult · A test run and next schedule succeedGuide reviewed · 2026-11-18See the screen ↓

Before you start

  • A prompt/agent that already works manually.
  • A route expected to be available at run time.
  1. Open Automation > Schedules and click New schedule. The New Scheduled Task window opens; Templates at its top can fill in a starting example.

  2. Type a Task Name and the exact Prompt. To choose which model or agent answers, open Advanced target, delivery, and runtime and set Runtime and Agent. Describe the schedule in plain language—for example every weekday at 9am—then read the green interpretation and click Use.

  3. Check the displayed Next run and time zone before saving. For a calendar schedule, check what happens around daylight-saving changes.

  4. In the same advanced section set Deliver Results To (Log Only, Insert into Chat, Webhook or Store in Memory), Max Tokens and Retry transient failures. There is no timeout field. If you set Tool Use to Enabled, an Unattended Autonomy choice appears and starts on Standard: change it to Read-only unless the task must write, keep Standard for reviewed writes/network/media, and use Trusted only when the task genuinely needs shell or MCP. Underlying confinement and allowlists still apply.

  5. Click Test Job and read the sample run’s result. Check that the answer is useful and that any allowed actions are appropriate for a scheduled run.

  6. Click Create. Find the new row under Schedules and check when it is due. Click Run now to see one result under Last runs. Use the row’s switch to pause future runs.

You are done when

The test produces the intended deliverable, the task is enabled, and the displayed next run and autonomy level match what you meant.
Automation Schedules showing scheduled tasks and their run controls.
Review the task, timing, route, unattended policy and destination before Run Now or enabling recurrence.
Advanced details

The timeline at the top shows when each enabled schedule will run over the next 24 hours. Check for overlap between jobs that use the same runtime.

Scheduled runs that settle unfinished due to a step limit, output cap or lack of progress are recorded as failed with the partial transcript. Ai Keeper does not automatically repeat the entire task, which could duplicate side effects.

At launch/wake, enabled tasks that missed runs get at most one catch-up each, with at most five starts, oldest first, after a two-minute delay and five-second spacing. Remaining missed tasks get catch-up-skipped history entries. Interval schedules remain anchored to last run or creation. A newly enabled/rescheduled task starts accounting from that change.

If something looks wrong

Test says route unavailableVerify the selected instance with a normal Chat request; reasoning models may need enough output tokens for the probe.
Wrong timezoneRead the local time-zone and next-run preview before enabling; calendar schedules follow daylight-saving transitions.
Tool was refused unattendedRead-only and Standard intentionally refuse higher-risk tools. Raise autonomy only after reviewing the exact tool and its underlying policy.

Create a cron schedule

Give a job a precise recurring cadence with a cron expression and check its next run.

Intermediate5–10 minResult · Cron expression matches intended datesGuide reviewed · 2026-10-05See the screen ↓

Before you start

  • Know the desired local time and days.
  1. Open Automation > Schedules, select the job and click Edit… (or click New schedule). Under Schedule, set Type to Cron.

  2. Click a preset (Every 15 min, Hourly, Daily 9 AM, Weekdays 9 AM or Weekly Mon) or type the five fields in Cron Expression: minute, hour, day of month, month, day of week. A red note appears while the expression is not valid. If cron is unfamiliar, use Interval or Daily instead, or type the schedule in plain words under Natural language and click Use.

  3. Read Next run: and Time zone: under the expression. Only the next run is shown, so check that its weekday and time are what you meant.

  4. Click Save (Create for a new job). The job row then shows Next:, and the Next 24 hours strip above marks every planned run of the day.

You are done when

Next run: in the editor and Next: on the job row show the date and time you would write down manually.
Automation Schedules showing scheduled tasks and their run controls.
Review the task, timing, route, unattended policy and destination before Run Now or enabling recurrence.
Advanced details

A cron expression has five fields: minute, hour, day of month, month, day of week. The editor's own examples are 0 9 * * * (daily at 9), */15 * * * * (every 15 minutes) and 0 */2 * * * (every 2 hours).

The calendar button at the top right of the Jobs tab opens a separate Cron Editor that lists the same jobs. A schedule changed there is saved at once: there is no Save button, no warning for an invalid expression and no next-run line, so use Edit… when you need to check the result. Back to Jobs returns to the list.

If something looks wrong

Every minute by accidentDo not save until the preview matches. A wildcard in the wrong field can create excessive work.
DST shiftSchedules always use this Mac’s time zone, shown as Time zone: in the editor; a job cannot be given its own. For time-critical work, check the next run around the clock change.

Build a multi-step workflow

Chain prompt steps, each answered by a model or an agent, into a repeatable flow.

Advanced20–45 minResult · A test run completes every step in orderGuide reviewed · 2026-10-05See the screen ↓

Before you start

  • Each individual step works on its own.
  • A defined input and final output.
  1. In Automation > Workflows, click Create Workflow (or the plus). In New Workflow, type a Name and a Description of the final deliverable, leave Execution Mode on Sequential (Managed), and click Create.

  2. Select the workflow and click Add Step once per stage. For each step type a Step Name and its prompt, the Port of the model that should answer, and, if a later step needs this result, a name in Output Variable. A later step inserts it by writing that name in double braces, for example {{summary}}. Leave Agent ID empty to send the step straight to the model.

  3. There are no condition or branch steps. Steps run from top to bottom, and a step that fails ends the run unless Continue on error is ticked on it.

  4. If the workflow can change anything, turn on Require approval before run. Approval covers the whole workflow, not single steps, and there are no per-step timeouts or retries. Click Save Changes.

  5. Click Run (Approve & Run when approval is on). Follow Runtime: it shows the current step while running, then Last run and the five most recent results. Break one step on purpose once to see how a failed run ends.

You are done when

Last run reads Success for the normal run, and Failed or Partial with the number of finished steps for the broken one.
Automation Workflows showing a four-step vendor review, execution-order controls, recent runs and its callable tool name.
Read the steps and choose whether they run one after another or all at once. Use Run to test the selected workflow.
Advanced details

In Sequential (Managed) each step also receives a Previous results block holding the first 500 characters of every earlier step's output, and a named Output Variable can be inserted anywhere with double braces. In Parallel (Mirrored) all steps are sent at once, so no step can use another's output.

A step is sent to its own Port, otherwise to the first step's port, otherwise to 8000; with an Agent ID it goes to that agent instead. A workflow with Require approval before run waits under Automation > Approvals > Task Flows.

If something looks wrong

Flow is hard to debugSplit by ownership or observable boundary, not into dozens of tiny opaque steps.
Retry repeats a side effectRunning a workflow again starts a fresh run. Keep steps that send or change something last, and put the workflow behind Require approval before run.

Set up and stop heartbeat agent turns

Choose an agent or running session, a cadence and a shared HEARTBEAT.md prompt, then inspect recurring turns.

Intermediate10–20 minResult · A useful recurring check with a known stop controlGuide reviewedSee the screen ↓

Before you start

  • A check that genuinely benefits from recurring model judgment.
  1. Open Automation > Heartbeat and keep Enable Heartbeat Turns off while preparing the check.

  2. Select Heartbeat Agent / Session. Choose a specific agent for predictable routing; Auto (first running session) uses an available session.

  3. Write a narrow HEARTBEAT.md prompt, including what to check, what a useful result is and when to stop without taking action. Click Save.

  4. Choose Turn Interval (5 minutes unless changed; up to 2 hours) and click Run Now at the top of the page to inspect one turn before enabling recurrence.

  5. Enable heartbeat turns, review Recent Turns and any skipped reason, then disable the switch when the monitoring is no longer needed.

You are done when

A triggered turn uses the intended agent/session and prompt; recurrence records useful turns, and disabling the switch stops future scheduled turns.
Automation Heartbeat showing the Heartbeat turns switch, Run now, Who takes the turn, How often and the HEARTBEAT.md editor.
Keep Heartbeat turns off while you write the prompt. Run now makes a single turn; How often controls recurring turns.
Advanced details

Health pings and heartbeat agent turns are distinct. An engine’s readiness monitoring is not evidence that a model task ran.

The shared prompt and interval are saved separately from per-task budgets. A narrow prompt is helpful but cannot replace real tool policy, route readiness or unattended autonomy controls.

If something looks wrong

Looking for max iterationsThis heartbeat editor exposes enable, agent/session, interval and prompt; it does not provide a maximum-recurrence field. Bound the task itself and disable the loop when finished, or use a scheduled one-shot job.
Auto ran the wrong sessionChoose a named heartbeat agent rather than relying on the first running session.
No turn ranInspect skipped-turn information and route availability before reducing the interval.

Run and cancel a background task

Send longer work out of the foreground and verify cancellation leaves a clear terminal state.

Intermediate5–30 minResult · The task completes or cancels cleanlyGuide reviewedSee the screen ↓

Before you start

  • A long-running but interruptible job.
  1. Open Automation > Background and click New Task.

  2. Fill Name, Target Port, Cost and Prompt. Copy the port of the intended available route instead of assuming the form’s 8000 value is correct.

  3. Choose Require approval before start when you want to review launch. Click Queue Task.

  4. A queued task does not start by itself. Click the play button (Start task) on its row. If you required approval, click the shield button (Approve and start task) instead, or approve it in Automation > Approvals. While it runs, the stop button (Cancel task) ends it; read the row’s status and any Result before assuming nothing happened.

  5. Queue a second small task and let it complete. Use Edit in Workflows for the owning multi-step workflow rather than looking for an output-destination field in this quick form.

You are done when

The task uses the intended target, reaches a clear completed/cancelled outcome, and its result can be inspected.
Automation Background showing running and queued tasks, work waiting for approval, upcoming schedules, earlier runs and failed delivery retries.
Read each task’s state before using Start, Stop or Approve. Failed deliveries have their own Retry control.
Advanced details

The quick background-task sheet exposes target port, cost and launch approval; duration, arbitrary output destinations and model/agent selectors are not fields in that form.

Cancellation stops future work but cannot undo an already-completed send or write. Inspect outcomes and affected files before retrying.

If something looks wrong

External side effect already happenedCancellation cannot undo a completed send/write. Keep irreversible steps late and approval-gated.

Create an authenticated webhook trigger

Accept one external event through a configured route and test its authentication before using real actions.

Advanced15–30 minResult · An authenticated event reaches its configured handlerGuide reviewedSee the screen ↓

Before you start

  • A sender on this Mac, or an authenticated HTTPS relay or tunnel that forwards to it. The listener does not accept connections from other machines.
  • A tested automation to trigger.
  1. Open Automation > Webhooks. Review Server Configuration: the webhook listener has its own Port (9200 unless changed) and shows Stopped until you click Start.

  2. Under Registered Routes, fill in Path (it starts with /webhook/) and Label, choose a Handler (Send to Session, Trigger Task, SCM Automation, Plugin Hook or Custom Handler) and click Add. Model/task handlers require authentication even if an older saved route says otherwise.

  3. Use Copy next to Token: to obtain the full secret securely. The displayed prefix is not the whole credential.

  4. Follow Test with cURL using the displayed port, route and bearer token. Keep the test message harmless; a 202 means accepted, so also inspect the handler’s downstream result.

  5. Repeat once with a deliberately wrong token and verify 401. An unauthorized body should not be retained.

  6. For SCM events, use the provider-specific instructions: GitHub/Bitbucket SHA-256 signature, GitLab secret token or Azure bearer authentication. Prove the mapped event dispatches the intended task.

You are done when

A valid credential reaches the chosen handler, a wrong credential is refused, and the downstream action is accounted for.
Automation Webhooks showing the stopped listener, port and token controls, saved addresses, recent calls and a Try it example.
Start the listener, add a route and copy the full token before testing. The token shown on screen is shortened.
Advanced details

A generic bearer-token webhook and a signed SCM event are different authentication contracts. Do not describe the bearer example as a payload-signature or replay-resistant request.

Source-code event delivery identifiers and specialized coding/webhook workflows have their own deduplication/recovery behavior. Verify that exact path before relying on duplicate suppression.

If something looks wrong

202 accepted but no useful actionInspect session activation/routing and handler history. HTTP acceptance is not final task success.
Assuming every webhook has replay protectionThe generic bearer-token route does not promise a timestamp window or general idempotency check. Use the owning integration’s documented mechanism and an idempotent downstream action.
Token copied into a public logRotate the webhook secret and update the sender securely.

Retry, recover, or export a failed automation

Read partial outcomes and history, fix the cause, then deliberately resume or rerun the exact work.

Advanced10–30 minResult · A failed item is recovered or documentedGuide reviewed · 2026-11-18See the screen ↓

Before you start

  • A failed job, webhook delivery, or workflow item.
  1. For a schedule, open Automation › Schedules and select the failed entry in Run history. Check its prompt, error or reply, retries and delivery status. For workflows, background work or webhooks, open the corresponding Automation view and look for its most recent run or call.

  2. Correlate it with Activity > Requests and Logs. Distinguish unavailable route, credentials, context/output budget and tool policy.

  3. Inspect files or external targets to see whether any action already completed. A failed final summary does not imply that earlier effects were undone.

  4. After fixing the cause, go to Schedules › Manage › Failed deliveries for a job that produced a result but could not deliver it. Review Output opens the saved result and Retry Delivery resends it. To run the whole schedule again, select it and click Run now.

  5. Review the new outcome. Use Export Report in Schedules to keep a Markdown record of schedules, runs and failed deliveries. For a team run, use Agents › More › Run › Export Report.

You are done when

The recovery completes the missing work without duplicating a prior action, or remains a clearly documented terminal failure.
Automation Schedules showing scheduled tasks and their run controls.
Review the task, timing, route, unattended policy and destination before Run Now or enabling recurrence.
Advanced details

Use Resume for an unfinished team stage. Retry Delivery sends a saved result without rerunning the model. Starting a workflow or background task again can repeat actions, so inspect what the first run completed.

Operational failures are different from model-quality failures. Preserve the original run evidence and fix availability/configuration before grading the model’s ability.

If something looks wrong

Blind retry duplicates workCheck idempotency and external state first.
Same error repeatsStop retrying and fix the underlying configuration; retry budgets are safety limits, not a repair strategy.

Connect triggers, authority policies and approvals

React to events without confusing a standing instruction with permission to execute a tool.

Intermediate15–30 minResult · One event reaches a reviewed bounded actionGuide reviewedSee the screen ↓

Before you start

  • A manual task that already succeeds.
  • One specific event source and agent scope.
  1. Open Automation > Triggers and click Create Trigger. A trigger reacts to a moment in an agent’s own work, not to something outside the app. Give it a Name, choose an Action Type (Inject Prompt, Execute Skill, Notify Webhook, Log to Memory, Run Command or Tool Policy) and fill in the box under it. Open Advanced event trigger to choose the Event, such as Before Tool Call or Task Failed. Start with a harmless Inject Prompt, or pick one from Templates, and click Create.

  2. Open Policies and click Create Policy. Give it a Name and state the rule clearly in Authority (what the agent can do); Advanced trigger, approval, and escalation holds Approval Gate, Trigger and Escalation Rules. A policy made here applies to every agent while its switch is on; this screen cannot limit it to one agent.

  3. Review the agent’s tools and global Permissions & Safety settings. Instructions do not bypass confirmation or filesystem/command policy.

  4. Trigger the event once in a disposable context and follow its actual task/output.

  5. Know where each kind of approval appears. Approvals lists three things, each with Approve and Reject: wiki digests from Knowledge, background tasks queued with approval, and workflows that require approval. A tool an agent wants to run does not appear here; it asks in the chat, or in the Run Tool? window on Agents > Run. A trigger installed by a package that runs a shell command shows Blocked in the Triggers list until you click Approve there.

  6. Inspect history/audit and test a disallowed or no-action case before enabling routine use.

You are done when

The intended event reaches one attributable reaction, policy scope is correct and sensitive work waits for the intended approval.
Automation Triggers with six sample triggers, their events and actions, and a command trigger waiting for approval.
Triggers, Policies and Approvals are separate views. A command trigger from a bundle waits for your approval before it can run.
Advanced details

Triggers are event reactions; Policies are standing authority instructions; Workflows define an ordered list of prompt steps; Approvals is the review queue. They are distinct tabs and execution concepts.

Every policy created in Automation > Policies is global: while its switch is on it is added to the prompt of every agent. To see exactly what one agent receives, open Agents > Agents > Edit and expand Effective Prompt Preview, which lists the standing orders and the prompt-injecting triggers that apply to it.

More example screens
Automation Policies with sample authority rules.
Review a policy’s permitted actions before attaching it to a trigger.
Automation Approvals with sample items to review.
Open a waiting request and review its details before deciding.

If something looks wrong

A standing order was treated as an access grantPolicies guide behavior; actual tools and permissions are configured independently.
No reaction appearsCheck the event’s exact type, enabled state and agent scope before adding more triggers.

Keep going