Skip to main content

Automations

Automations run a saved agent prompt on a project's data. A run starts when a trigger fires, such as a recording finishing import, an event being created or updated, or a schedule, or when someone starts it by hand. They can annotate recordings with typed events, add episodes to datasets for an engineer to review and commit, and file tickets or post reports through external MCP services.

Common use cases include:

  • Triage and routing for new events
  • Finding scenarios for datasets
  • Rule-based creation of events on ingestion
  • Adding details to external tickets and trackers

An automation is a named prompt saved in a Project. The prompt applies to every automation run and can include useful context such as reference layouts and images, mentions of event types, and pointers to other automations to run. Every automation has an optional Trigger. Each run reports its findings as Output, a Markdown report on the run page, and can also act through side effects such as creating events or writing to external MCP services.

Automations are available on Foxglove Cloud and Foxglove Cloud, bring your own storage (BYOS). They are not available for on-premises Primary Sites. Creating, editing, or running an automation requires a developer seat. Runs are refused while the agent sidebar is turned off for the organization.

What a run can access​

A run acts as the automation's owner, with the owner's project access and AI usage, and follows the saved prompt. Every step it takes appears in the run's Activity. A run can:

  • Read the project's recordings, topics, events, and user scripts, open a saved layout that the prompt mentions, and capture screenshots.
  • Create, change, and delete events. A new event, or a new time range on an existing event, must overlap a recording on that event's device.
  • Create datasets and episodes, edit episodes, and add or remove episodes in a dataset's draft.
  • Start another automation in the same project. See Chain automations.
  • Call the external MCP tools the owner allowed for this automation. See External MCP accounts and services.

A run can't create or change layouts, user scripts, or automations, commit dataset versions, or reach data outside its project.

Only the owner can edit the automation, including which MCP servers it may call. Project members who can open it can start a run and read the run. The owner or an org admin can enable or disable the automation, remove its trigger, or delete it.

Create an automation​

Start with a project that already has recordings and events you want the agent to look at. To create your first automation:

  1. In the sidebar, open Automations.
  2. Click New automation.
  3. Enter a Name.
  4. Choose a Trigger, or Manual only to start every run yourself. See Triggers.
  5. Write the Prompt. See the guidance after these steps.
  6. Choose a Model. See Models, billing, and limits.
  7. Under MCP servers, choose None, Read-only, or All tools for each connected server. See External MCP accounts and services.
  8. Click Save.

Say what to look for and what the automation run should report. Name the event type, topic, or threshold when you have one. A short prompt that states the outcome is easier to reuse than a prompt that narrates the investigation.

When you write the prompt:

  • Give the agent context: what key topics mean, which topics and typed events to inspect, the team's failure categories, and other important information.
  • Type @ to point the run at a specific layout that shows the relevant data. You can also reference event types, other automations, and other Foxglove entities.
  • Add example images, such as a known-good and a known-bad camera frame. Paste them into Prompt, or use its add-image button.
  • Split large jobs into chained automations instead of one long prompt.

Run and iterate​

To trigger a run manually:

  1. Open the automation.
  2. Click Run once….
  3. Enter Context. This is the prompt for this automation run, such as a recording or event to inspect, or extra instructions. Type @ to mention something in Foxglove, such as a recording, event, or another automation. Context doesn't change the saved prompt. The dialog requires it.
  4. Click Run automation.
  5. On the Automation runs tab, open the new automation run.

You can also start a run from the agent sidebar, Slack, an agent connected to the Local MCP server such as Claude Code, or the API. The agents can also create and edit automations, and read past runs, including their Activity, to explain what a run did and suggest changes to the prompt. On an automation or automation run page, the agent sidebar already knows which one you're looking at.

A loop that works well:

  1. Save the automation with the Manual only trigger.
  2. Run it on a few recordings or events where you already know the right answer, including one where nothing is wrong.
  3. Open each run, compare its Output with what you expected, and ask the agent what to change.
  4. Save the change and run the same examples again. Compare Token usage to see whether the change made runs cheaper.
  5. When every example comes out right, choose a trigger.

Triggers​

An automation can have one trigger, which starts a run when something happens in the project. To change it, open the automation, click Edit, choose a Trigger, and click Save.

Trigger can be:

  • Manual only. A run starts only when someone starts it. See Run and iterate.
  • On a schedule. Choose Repeat: every hour, day, week, or month. Hourly runs start at the top of the hour. For other cadences, select Hour (UTC), then the day of the week or month when applicable. Monthly dates are limited to days 1–28. Runs delayed by five minutes or more are skipped.
  • Event is created or Event is updated. Set Event type to one event type, or Any event type.
  • Recording is created. For a direct upload this happens as the recording finishes importing. Otherwise it happens when an Edge Site or a device running Foxlet reports a new recording.
  • Recording is imported, when a recording finishes importing.
  • Session is created, when a new session is created. A session groups recordings from one device.

A triggered run receives the event, recording, or session that fired the trigger as its Context. A scheduled run receives the cadence, scheduled UTC time, and project ID.

Chain automations​

Narrowly focused automations work better than broad ones. Break a complex job into simple steps that each answer one clear question, and give each step its own automation. Chain them through events: a first automation flags candidate events, and a second, triggered on that event type, reviews each one.

A run can also start another automation directly. That run acts as the owner of the automation it starts and uses that owner's project access and AI usage.

Direct starts and event triggers share a depth limit: a chain can go three levels past the run that started it, and each run can start more than one run. Beyond that, the next trigger match is saved as a failed run, and a direct start past the limit is refused. Editing data yourself, or starting a run yourself, starts the chain again from the beginning.

Examples​

Triage, on Event is created for disengagement events:

Open the Disengagement Review layout and inspect the seconds around the event. Report the topic or fault that best explains why control was handed back, your confidence, and the supporting time range.

A rule, on Recording is imported:

Create one latency_spike typed event for each interval where /control/loop_latency_ms is above 200 ms, with properties topic and peak_latency_ms. Don't change existing events.

A chain: one automation, on Recording is imported, creates a missed_grasp event each time the gripper fully closes during a grasp. A second, on Event is created for those events, classifies each one:

Open the Grasp Review layout and check the wrist camera around the event. Decide whether the grasp missed or closed on something thin, like paper or cloth, and file a Linear issue with screenshots and your reasoning.

Models, billing, and limits​

Each automation has a Model setting: Auto, Claude Sonnet 5.5, or Claude Opus 5.5. That model is used for every run. When an automation has no model of its own, it uses the organization's default.

Automation runs are billed as AI usage to the automation owner's organization. Usage is Anthropic token cost, plus a Foxglove fee of $1.00 per million tokens. See Pricing for included usage and overage.

A run stops after 58 minutes of work, or when it reaches its estimated AI cost limit of about $50, including provider cost and the Foxglove fee. A model call already in progress can take the cost over that limit before its usage is reported.

When the owner reaches their AI usage limit, a running automation stops, and further runs that need that owner's usage are refused until usage renews or the organization adds capacity.

Each organization has a $500 AI spend limit per billing period by default, shared by AI Chat and automations. An org admin can change it in Settings → Billing → Usage. Select the limit below the AI usage total. Choose the $500 limit, a Custom amount, or None to let usage continue with normal billing. Settings → Personal → Agents & MCP also shows the organization limit.

When the organization reaches its spend limit, AI Chat requests and new automation runs are refused. Runs in progress stop between steps after the usage check detects the limit. Billing usage is approximate and cached, so spend can exceed the limit before these checks detect it. AI usage can resume in the next billing period, or when an org admin raises the limit above current spend or selects None. Per-member AI usage limits still apply, including with no organization limit.

An organization can have 80 runs pending or running at once; one owner's automations can have 40. Triggered and scheduled runs wait when those concurrency limits are full. A run that waits a full day for a free slot, or that does not start within 60 minutes after it gets a slot, is marked failed.