Skip to main content
Browse docs

Write automation instructions that work

What to put in the What should Eva do? box so reports are short, useful and quiet when nothing is wrong, and what to write when an automation does the work and opens a pull request, with examples you can copy.

On this page

The What should Eva do? box is the whole brief for an automation. Eva follows it every time the automation runs, with nobody there to answer questions, so a few clear sentences go a long way. Start with how you'd ask a careful colleague to check something for you.

If you haven't set one up yet, start with Automate recurring checks and reports.

Most of this page is about reports, which is what an automation writes unless you choose otherwise. If you chose Do the work and open a pull request, read "When the automation does the work" further down as well.

What Eva already knows on each run

You don't need to explain these:

  • Which app it's checking, and that it should use what 1904 knows about it: health, monitoring findings, recent changes and, when the app is running, a recent log excerpt.
  • When the automation last ran and which problems are still open from earlier runs. Eva is asked to say whether each of those is better, worse or unchanged.
  • Whether the app is off, down or asleep right now. An app you turned off on purpose isn't reported as a problem.
  • For an event trigger, the event itself: which problem was found or which change went live or failed, and when.
  • That anything it reads from your app is information, never instructions to follow.

Four things to include

  1. What to look at. Name the areas that matter, such as failed requests, restarts, open problems or recent changes.
  2. What counts as worth flagging. Be specific. "Anything that got worse since yesterday" is clearer than "anything interesting".
  3. How long the answer should be. "At most four sentences" keeps reports quick to read.
  4. What to do when nothing is wrong. Ask for one sentence and no findings. This matters for notifications: with the default delivery, Notify me when something needs attention, you're notified when a report records a new problem. A problem that's still open from an earlier run is listed once under Open problems and doesn't notify you again. An automation told to always find something new will notify you every time.

Examples you can adapt

Weekday morning summary (On a schedule, Weekdays, 08:00):

Check how my app is doing. Look at whether it's up, its failed requests and restarts since the last check, open problems from monitoring, and changes since yesterday. Write at most four sentences: is it healthy, what changed, and anything I need to decide. Record a finding only if the app is down, an open problem is getting worse, or a change didn't go live. If everything is fine, say so in one sentence.

Checkout watch (Monitoring finds a new problem, Event summary contains "checkout"):

A new problem mentioning checkout was found. Read it in full, including how often it's happened. Check whether a change went live shortly before it first appeared. In three sentences, tell me whether customers can still pay, whether a recent change looks responsible, and the most useful next step. Record one finding. Don't guess at a cause the evidence doesn't show.

Failed change explainer (A change fails):

One of my changes didn't make it. Explain in plain words what failed, whether my live app is affected, and what I should do next. Keep it to three sentences and record one finding.

Weekly health trend (On a schedule, Weekly, Monday, 09:00):

Compare this past week with the week before: failed requests, restarts and memory. Mention only clear changes and what might explain them, such as a change that went live. At most five sentences. Record a finding only for something that got noticeably worse.

Wait for a problem to stop (On a schedule, Daily):

Check whether the "Unhandled errors" problem from monitoring is still happening. Say in one sentence whether it's still active, how often it was seen since the last check, and whether it came back after a fix. When it hasn't appeared for two days in a row, say so plainly and suggest I turn this automation off.

Things to leave out of a report

A report reads and reports. Asking for any of these leads to a report that says it couldn't do them:

  • Making changes, starting fixes or deploying. Ask Eva for the change once you've read the report, or set up an automation that does the work and opens a pull request.
  • Contacting people or outside services, such as sending email, posting messages, or opening websites.
  • Reading your source code or running commands.
  • Checking more often than hourly.

When the automation does the work

With Do the work and open a pull request, your coding agent follows the same box, but nobody is there to approve commands or answer questions, and the result is a pull request you review. Three things make that go well:

  1. Describe one job with a clear edge. "Update dependencies that have a newer minor or patch version, and run the tests" is a job. "Keep the app in good shape" isn't.
  2. Make Done means something you could check yourself. For example, "Tests pass and a pull request is open." The agent is told to check its work against this before it finishes and to say how it checked.
  3. Say what happens when there's nothing to do under If there's nothing to do. Left blank, the run says so and stops without opening a pull request.

An example (On a schedule, Weekly, Monday, 09:00):

Check this app's dependencies for newer minor and patch versions. Update the ones that have them, run the tests, and fix anything the updates break. Leave major version upgrades alone and list them in your summary.

Done means: Tests pass and the summary lists each package that changed.

If there's nothing to do: Say every dependency is current and stop.

Leave these out:

  • Changing production or deploying. The automation can't do either. It prepares the change, and you choose when it goes live.
  • Anything that needs an answer from you partway through. A run that stops to ask ends as Needs you.
  • Outside services that aren't connected to the app under Skills & MCP servers.

A rehearsal runs the job once for real before it goes live, so read the rehearsal's task and pull request as your first check of the instructions. Changing the instructions afterward means rehearsing again.

Tune it after a few reports

Read the first few reports, then adjust. If they're too long, tighten the length limit. If they flag things you don't care about, say what to ignore. If you're notified too often, make the finding rule stricter, or narrow an event trigger with Only when. Select Edit with Eva on the automation's page if you'd like Eva to suggest the rewrite. She explains her changes and asks before applying them.