Design booking and checkout forms AI agents can use
Clear labels, explicit field purposes and useful errors make forms easier to complete. These changes help people, assistive technology and browser agents, while reducing avoidable mistakes in bookings and orders.
Reviewed October 1, 2026 · 7 min read
On this page7 sections
A form turns a browsing session into a request that can affect a real customer. Ambiguous fields can send an order to the wrong address or create a booking with incomplete details. Form quality belongs in any review of what stops agents completing tasks.
Start with the meaning of each field. Does 'Name' mean the buyer, the attendee or the cardholder? Is an address for billing or delivery? A person may infer the answer from the layout, while a browser agent may use the DOM, accessibility tree or screenshots. Explicit semantics reduce guesswork across all of those interfaces.
Make field purpose explicit#
Use visible labels and meaningful groups. A fieldset with a legend can identify a shipping address; an associated label can identify the recipient's full name. The surrounding context belongs in the page structure as well as the visual design.
Do not assume every agent is blind to layout or that visual context is sufficient for every user. Provide both readable presentation and programmatic meaning, then test the actual flow.
Accessibility provides useful foundations#
Two WCAG criteria are especially relevant. They address human accessibility, not an AI compatibility certification, but their principles also improve form clarity:
| Criterion | Level | What it requires |
|---|---|---|
| 1.3.5 Identify Input Purpose | AA | Identify covered user-information fields programmatically when the technology supports it |
| 3.3.1 Error Identification | A | Identify automatically detected input errors and describe them in text |
The input purpose guidance concerns a defined set of user-information fields. The error identification guidance explains what users need when validation fails. Neither is satisfied by simply making a form look tidy.
Test accessibility and automation separately
Semantic controls can benefit both, but a successful agent run does not prove WCAG conformance, and accessible markup does not guarantee every agent can complete the task. Keep keyboard, assistive-technology and supported-agent checks in the same review.
Input-purpose metadata can support autofill and other assistance for people who find entering personal information difficult. It also gives compatible automation a clearer description of the value expected.
The vocabulary you are probably not using#
The autocomplete attribute accepts standardized tokens describing common input purposes. Use the token that matches the field; it supplements a visible label rather than replacing one.
| What you are asking for | Token |
|---|---|
| Full name, or its parts | name, given-name, family-name |
| Email address | |
| Telephone number | tel |
| Street address, as one field or lines | street-address, address-line1, address-line2 |
| Town or city | address-level2 |
| State, province or region | address-level1 |
| Postcode or ZIP | postal-code |
| Country | country, country-name |
| Company | organization |
| Card details | cc-name, cc-number, cc-exp, cc-csc |
Address tokens avoid assuming one country's labels fit every customer. address-level1 identifies a broad administrative division, while address-level2 usually identifies a city or similar locality. Still adapt visible labels and validation to the countries you serve.
Distinguish shipping, billing and repeated groups#
Use shipping and billing prefixes where they match the purpose of the fields. They tell compatible autofill systems which address or contact group the following token belongs to.
Keep visible group headings too. Autocomplete metadata is useful, but customers should not have to inspect HTML to know which address they are entering. This example shows both labels and distinct groups:
<fieldset>
<legend>Shipping address</legend>
<label for="shipping-street">Street address</label>
<input id="shipping-street" name="shippingStreet"
autocomplete="shipping street-address" required>
<label for="shipping-postal">Postal code</label>
<input id="shipping-postal" name="shippingPostal"
autocomplete="shipping postal-code" required>
</fieldset>
<fieldset>
<legend>Billing address</legend>
<label for="billing-street">Street address</label>
<input id="billing-street" name="billingStreet"
autocomplete="billing street-address" required>
</fieldset>For repeated groups such as several attendees, a section- token can distinguish related fields. Use stable, meaningful grouping and visible headings. Check the full token order against the HTML specification when combining section, shipping or billing and field-purpose tokens.
Start with the public-page checks
A Nexez scan inspects public business information and discovery resources. It does not complete your checkout or certify accessibility; test the form itself with the appropriate tools and users.
Scan your site freeExplain validation errors clearly#
Error recovery is part of the form, not an afterthought. Keep valid entries when submission fails and give the customer a specific way to correct the problem.
A red border alone does not explain what is wrong. Use a text message such as 'Enter a postal code for the delivery address.' Identify the field and, where possible, provide a useful correction without exposing private data.
Associate field errors programmatically, for example with aria-describedby, and mark invalid fields appropriately. An error summary can help if it links to the affected fields. Manage focus after submission so the user can find and fix the problem.
Common form problems to fix#
- Placeholder-only labels disappear during entry. Use a persistent visible label associated with the control.
- Custom controls need correct semantics and keyboard behavior. Prefer native controls where they meet the need.
- Date inputs need clear formats and usable keyboard interaction. Test the calendar as well as direct entry where supported.
- Broad autocomplete disabling can hinder assistance. Choose appropriate tokens, including one-time-code for a supported verification-code field.
- Multi-step forms should preserve valid progress and recover from interruptions without silently submitting twice.
- Identify required fields before submission and enforce the same business rules on the server.
Check meaning, state and result
For each control, verify that its name, purpose, current value and errors are available to the user and relevant software. After submission, show a clear result and a durable booking or order reference where applicable.
A focused form audit#
- Inspect labels, groups and control roles in the rendered page and accessibility tree.
- Add accurate autocomplete tokens for supported user-information fields.
- Distinguish billing, shipping and repeated attendee groups.
- Submit invalid values and check error text, associations, focus and preservation of valid entries.
- Complete the form with keyboard navigation and appropriate accessibility tools.
- Test a supported browser agent through permitted steps, including a clear handoff for approval or payment.
A documented API or MCP tool can support repetitive integrations that are awkward through a page. That decision depends on the clients and workflow, not on abandoning form accessibility. Human customers still need a usable interface.
Prioritize fields that cause real mistakes or abandonment, then retest the full journey. Small markup changes can help, but complex validation, identity checks and payment handoffs may need more substantial work.
Give supported clients a clear action interface
See how Nexez publishes structured offers and supported actions. Use connected tools where they fit, and keep the customer-facing booking or checkout flow clear and accessible.
See how it worksFrequently asked questions
What is the single highest-value change I can make to my checkout for AI agents?
Start with the problem your tests reveal. Common high-value fixes are persistent labels, correct autocomplete tokens, clear address groups and useful validation errors. No single attribute compensates for an ambiguous or broken submission flow.
Is this the same as accessibility work?
There is substantial overlap, particularly in semantics, field purpose and error messages. The goals are not identical: agent success does not establish accessibility conformance. Test keyboard and assistive-technology use as well as supported automation.
What do address-level1 and address-level2 mean?
They identify administrative levels without tying the field to one country's terminology. address-level1 is a broad division such as a state or province; address-level2 commonly identifies a city or locality. Match visible labels and validation to the countries your form supports.
Why do shipping and billing prefixes matter so much?
They distinguish the intended use of address or contact fields for compatible autofill systems. Use them alongside visible headings and semantic grouping so the distinction is clear to people too. They reduce ambiguity rather than eliminating every possible error.
Is a red border enough to signal a form error?
No. An automatically detected error needs a textual explanation identifying the affected field. Associate the message with the control and make it easy to reach. Color can reinforce the error, but should not be its only signal.
Should I use autocomplete="off" for security?
Do not treat autocomplete=off as a security boundary. Browsers may handle it differently, and appropriate tokens can improve secure entry. For a supported verification-code field, one-time-code is often the relevant token. Keep validation and authorization on the server.
When should I stop improving the form and build an API instead?
Build an API when a real integration needs a stable programmatic workflow and you can maintain its authentication and business rules. It complements the form rather than removing the need for accessible customer controls. Test both paths against the same operational result.
Keep reading
Why AI agents reach your site but cannot finish the task
Test the full path from finding an offer to confirming a purchase or booking, including errors and customer handoffs.
8 min readGuidesHow to stop AI assistants booking jobs you don’t take
An assistant can only follow rules you have written down. Say what work you take, what you need to know and what needs your OK.
7 min readGuidesHow to make your business AI-ready: a 30-minute checklist
A half-hour checklist: see what AI assistants say about you, fix the biggest gaps and run a free scan.
6 min read