← All lab notes

Automation

Designing LLM automations that remain useful after the demo

An LLM can make an automation more flexible, but it also introduces uncertainty into a system that used to follow fixed rules. The right design uses the model for the ambiguous part and keeps triggers, permissions, validation, and side effects explicit.

Start with the workflow, not the model

Choose a repetitive job with a clear beginning and end. A new file arriving, a message being labelled, or a scheduled review creates a better trigger than a general instruction to be helpful. Define the output before deciding which model should produce it.

A useful candidate has enough ambiguity to benefit from language understanding but a result that can still be checked. Classification, extraction, drafting, and summarisation often fit. Giving a model broad access to decide and execute unrelated actions usually does not.

Put deterministic rails around the uncertain step

The automation should gather the allowed context, call the model with a narrow task, validate the response, and only then decide whether a side effect is permitted. The model should not discover credentials, choose arbitrary destinations, or silently expand its own scope.

When possible, ask for structured output and reject responses that do not match it. Limit the available actions to a short allowlist. Require approval before deleting data, contacting someone, spending money, or changing infrastructure.

trigger → collect approved context → model decision
        → validate output → approve if needed
        → perform action → record result

Design the failure path first

Every run needs an identity, timestamp, input summary, model or rule version, result, and error state. Retries need a limit. A failed run should land somewhere visible instead of vanishing into a container log nobody checks.

Also decide what happens when the model is unavailable or too slow. Some workflows can wait. Others should fall back to a deterministic rule or stop cleanly. Local hosting gives control, but it does not remove outages, updates, memory pressure, or malformed output.

Measure whether it earned a permanent place

Track how often the workflow runs, how often a human corrects it, how much time it saves, and how much maintenance it creates. A technically impressive automation that needs weekly repair is not automated; it has simply moved the work.

The best home automations become boring. They run within clear limits, produce an understandable record, and ask for attention only when a decision genuinely needs a person.

Follow the lab.

See what is running on the workbench, or suggest an always-on assistant workflow worth testing.