What the agent needs from your page
The agent works with your page as your users see it. It reads the page’s structure, never screenshots, so it needs what a person using a screen reader needs:- A name for every control. A control’s name is its visible text, or its accessible name from a
<label>,aria-label,aria-labelledby,altortitle. - Controls that say what they are. Native elements tell the agent what a control does and what state it is in. For controls you build yourself, add the right
roleand states, such as checked, selected or expanded. - Messages shown as text. Errors and notices written near the field tell the agent what went wrong, as they tell your users.
Prerequisites
- HelpAlive is installed. See Install the script.
How to make your app agent-ready
1
Give every control a name
An icon-only button needs a name a screen reader would announce. Add
aria-label, or visually hidden text.2
Tie each field to its label
Use
<label for>, or wrap the field in its label. A placeholder alone is not enough. It disappears once the user types.3
Use plain, distinct words
Write “Invite teammate”, not “Go”. When a list repeats the same button on every row, the row’s own text tells them apart.
4
Use native elements or the right role
A
<button>, <select> or <input type="checkbox"> says what it is. If you build your own, give it the matching role and states, as accessible component libraries already do.5
Show errors as text
Write validation errors as text near the field, or link them with
aria-describedby. The agent reads them, as a user would.What the agent can’t read
Will it work with my app? lists what the agent can’t read, and the steps it always hands back to the user.Check it works
- Run your browser’s accessibility checker, or a tool such as Lighthouse, on a page with many controls. Fix controls flagged as having no name.
- Open the agent in your app and ask it to do a task on that page. Watch where it hands back to you.
Why does the agent stop and ask the user to take over?
It reached a control it couldn’t name or read. Find the step where it stopped, and give that control a visible label or anaria-label.
Why does the agent pick the wrong one of several similar buttons?
The buttons share a name. Make each name specific, for example “Edit billing address” and “Edit shipping address”.Next
How it works
From the question to the task.
Assists
Does the steps, or shows how.
Safety and hand-backs
What it always hands back.

