
Website chatbot accessibility: Start with task completion
Accessibility is not a color check at the end. A visitor must be able to open the widget, understand its purpose, enter a message, read the answer, follow a link, submit a form and close or leave using their chosen input and assistive technology.
Keyboard behavior
- Every interactive element is reachable in a logical order.
- Focus is clearly visible and never trapped without an exit.
- Opening the chatbot moves focus only when expected.
- Closing it returns focus to the launcher.
- Enter and Shift+Enter behavior is explained where multiline input exists.
- Escape behavior does not discard entered text without warning.
Screen reader behavior
Give the launcher, close control, send button and suggested prompts clear accessible names. Identify visitor and assistant messages without relying only on color or alignment. Announce new assistant messages politely so speech is not interrupted repeatedly. Loading states and errors must be exposed as text, not only animated dots.
Visual presentation
Use readable type, strong contrast and generous targets. At 200% zoom, content should reflow rather than requiring two-dimensional scrolling for ordinary messages. Do not make placeholder text the only label. Links need a visible treatment beyond color, and focus styles must remain visible on every theme.
| Scenario | What to verify |
|---|---|
| Long answer | Text wraps, headings remain clear and controls stay reachable |
| New message | Announcement is timely without stealing focus |
| Validation error | Error identifies the field and how to correct it |
| Mobile keyboard | Input and send control remain visible |
| Reduced motion | Nonessential animation stops or becomes subtle |
| Widget closed | Essential page content is never covered permanently |
Conversation content
Use plain language, short paragraphs and descriptive links. Do not encode meaning only with emoji. Explain acronyms and avoid directions such as “click the green button.” When presenting several choices, use a list with distinct labels rather than a dense paragraph.
Forms inside chat
Keep visible labels, field-level errors and purpose statements. Mark required fields in text. Allow review before submission and do not impose short time limits. If a date or phone format is required, show an example and accept reasonable variations where possible.
Do not use chat as the only route
Important support, contact and account tasks need an accessible alternative outside the widget. A chatbot may fail, time out or be difficult for a particular visitor. Publish a standard page, email, form or phone route appropriate to the service.
Check the host page as well as the widget
The launcher can be accessible in isolation and still cause problems after installation. Check whether it covers a sticky purchase button, overlaps a mobile browser control or appears before the page’s consent choice is resolved. Confirm that page landmarks and headings remain intact and that the widget does not create duplicate element identifiers. On pages with forms, video or another chat tool, test the combined focus order. Accessibility belongs to the complete visitor path, so document which templates and breakpoints were included in release testing.
Test with more than automation
Automated checks catch missing labels and some contrast defects, but not confusing focus or unusable announcements. Complete the core flow by keyboard, with zoom and with at least one screen reader. Include disabled users in usability testing when the service and resources allow.
Regression checklist
Retest after changing the widget library, page layout, consent form, suggested prompts or message rendering. Accessibility belongs in the same website chatbot release gate as accuracy and security because all three determine whether the answer is genuinely usable.
Test one conversation as a complete accessible task
Start on the host page with a keyboard only. Reach the launcher in a logical order, open it, identify where focus moved and submit a question without a pointer. Confirm new messages are announced without forcing focus away from the input, the waiting state is conveyed, errors identify the affected field and closing the widget returns focus to the launcher. Repeat at 200 percent zoom and in a narrow viewport so controls do not disappear or overlap.
With a screen reader, check the accessible name and state of the launcher, dialog or region, transcript, input, submit control and close control. A stream of messages should not re-announce the entire transcript whenever one reply arrives. Status text must include enough context to stand alone: “Message sent” is useful; announcing only “three” after a result count changes is not.
A quotation flow asks for email and location. Submit both empty, then correct only the email. The summary should say there is one remaining error, the location field should be programmatically associated with its message and the entered email should remain. Color or an icon may support the state but cannot be the only indication. The same task must remain available through a non-chat route when the widget cannot be used.
Use the normative WCAG 2.2 recommendation and its Understanding documents when defining acceptance criteria. Relevant checks commonly include keyboard access, focus order and visibility, reflow, contrast, labels, error identification, name-role-value and status messages. Automated tools find some defects, but they cannot judge whether the conversation remains understandable or the task can be completed.