All articles
Article7 min readUpdated

AI action receipt: the complete component spec

When an AI agent acts on the user’s behalf, such as sending an invoice or changing a booking, the interface has to say what was done, with what result and what to do next. That is the job of the action receipt: a small component with four states (pending, confirmed, refused, unknown outcome), announced to screen readers without moving focus.

What is an AI action receipt?

It is the message that keeps a record of an action launched by an AI agent. A toast that disappears is not enough: the user did not perform the action themselves, so they need to be able to check what happened, whenever they want.

The idea comes from an article by Daniil Shakhovskiy published by Design Systems Collective on 2 December 2026, which suggests designing the receipt before automating the action. The article sets out the principle and the four states. This page turns it into a component spec, ready to drop into your documentation.

We recommend keeping the receipt attached to the action, where it was requested: its content changes state without changing place.

Anatomy: the three parts of a receipt

A complete receipt has three parts, always in the same order.

  1. The action, the receipt’s title: a stable phrase with its precise object. “Sending invoice F-2026-118 to Dupont SA”, not “Task in progress”.
  2. The result and its source: what happened, and where the information comes from (the payment service, the calendar, the email service). Users need to know who confirms it.
  3. The next step: one link or button, a single one, matching the state. View the email, fix, check.

Add the time of the last update. It answers the first question people ask about a status: is it still current?

Two layout rules, taken from the Design Systems Collective article. The action, which acts as the title, does not move when the state changes: only the result and the next step change. And the state is never conveyed by color or a spinning icon alone: it is always written out in words.

The four states

StateWhat the receipt saysSample copyNext stepAnnouncement
PendingThe action has started, the result is not known yet“Sending invoice F-2026-118 to Dupont SA…”None, or “Cancel” if cancelling is truly possiblePolite (status)
ConfirmedThe action succeeded, the source confirms it“Invoice sent to Dupont SA at 2:02 pm, according to the email service.”“View email”Polite (status)
RefusedThe action failed or was refused, with the reason“Invoice not sent: Dupont SA’s address is invalid.”“Fix the address”Polite by default, immediate (alert) if the user must act right away
Unknown outcomeNobody knows whether the action happened“We don’t know if the invoice was sent. Check the history before sending it again.”“Check the history”Polite (status)

The unknown outcome state is the least obvious to plan for, and the one that protects users most. It happens when the connection is lost after sending, or when the service does not respond. The “Try again” reflex is risky here: if the action actually succeeded, you send the invoice twice, or pay twice.

How do you announce a state change to screen readers?

With a live region that already exists in the page, and without ever moving focus. WCAG success criterion 4.1.3 “Status Messages” (level AA) requires that a message about the result of an action or a waiting state be presented to assistive technologies without receiving focus.

For a receipt, the base technique is the status role. According to MDN, it is equivalent to aria-live="polite" and aria-atomic="true": the screen reader waits for a pause to read the message, and reads it in full. The alert role is for important, time-sensitive information, and MDN recommends using it sparingly. WCAG cites alert for errors; we keep it for refusals that block the user, so as not to interrupt them needlessly.

<!-- Present in the page before the first update -->
<div class="receipt" data-state="pending">
  <p class="receipt__action">Sending invoice F-2026-118 to Dupont SA</p>
  <!-- Empty at first, filled by script: “Sending invoice F-2026-118…” -->
  <p class="receipt__result" role="status"></p>
  <!-- Separate empty region, for a refusal that needs action right away -->
  <p class="receipt__alert" role="alert"></p>
  <p class="receipt__time">Updated at 2:01 pm</p>
  <!-- The next step stays outside the live regions -->
</div>

Do not switch an element’s role on the fly: set up a status region and a separate alert region from the start, and inject the text into the right one. Also include the object of the action in the announced text: in a list of receipts, “Sending” alone does not say which invoice.

MDN describes these pitfalls for the alert role. In practice, they apply to any live region:

  • The region must exist in the page before it is updated. A region inserted already filled may not be read.
  • The same text shown again may not be reread. To announce the same message twice, clear the region, then set the text again.
  • A region hidden with display: none is never announced.
  • An alert region holds text only: no link or button inside. Place the next step next to it.

The copy for each state

Copy matters as much as layout. Four rules are enough:

  • Name the object of the action: “invoice F-2026-118”, not “your request”.
  • State the source of the result: “according to the email service”, “according to your bank”.
  • Give the reason for a refusal in the user’s words, not an error code.
  • Write at most one next step, with a verb: “Fix the address”.

In the unknown outcome state, own the uncertainty instead of hiding it. “We don’t know if…” is more honest than a false failure status, and tells users why they are asked to check before sending again. Any new attempt is then linked to the same request.

Tokens and variants

We recommend reusing the semantic status tokens your design system already has: info for “pending”, success for “confirmed”, error for “refused”, warning for “unknown outcome”. If they do not exist yet, the design tokens guide explains how to name them.

In our view, two variants are enough in most cases: an inline version, attached to the element the agent acted on, and a list version, for the history of the agent’s actions. Both share the same anatomy and the same states.

Acceptance criteria

AI action receipt

0 of 13

This component complements the edge cases a design system should already cover, described in UI edge cases: how to test them in a design system. It also fits the shift from interfaces built for humans to interfaces where an agent acts, detailed in AI-ready design system: from UX to AX, the roadmap. For the legal framework, see Web accessibility: 2025 obligations and the role of design.

Frequently asked questions

The status role by default, for every state. The alert role only when a refusal requires the user to act right away, in a separate region: it interrupts reading and should stay rare.

Because the action may have succeeded: retrying without checking can send or pay twice.

No. A toast disappears. Yet the user did not perform the action themselves: they need to be able to find what happened.

Success criterion 4.1.3 “Status Messages”, level AA: a result or waiting message must be announced to assistive technologies without taking focus.

Sources

  • Daniil Shakhovskiy, “Design the Receipt Before You Automate the Action”, Design Systems Collective, 2 December 2026: https://www.designsystemscollective.com/design-the-receipt-before-you-automate-the-action-39598af4e1ed
  • W3C, “Understanding Success Criterion 4.1.3: Status Messages”, WCAG 2.2: https://www.w3.org/WAI/WCAG22/Understanding/status-messages.html
  • MDN, “ARIA: status role”: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/status_role
  • MDN, “ARIA: alert role”: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/alert_role

A design system or brand project?

Audit, foundations, components, governance, adoption: let’s talk about what is holding you back.

Book a call (new tab)