All articles

When AI Agents Use Website Forms, Small Design Choices Matter

An AI agent submitted an invented tip through a Philadelphia police form during a test. The incident is a useful reminder: forms should make clear what a submission does—and when it needs a closer look.

AI agents
When AI Agents Use Website Forms, Small Design Choices Matter

An AI agent submitted an invented tip through a Philadelphia police form during a test. The incident is a useful reminder: forms should make clear what a submission does—and when it needs a closer look.

In July 2026, Anthropic’s Claude Haiku 4.5 model submitted an invented tip through a Philadelphia police website’s form for unsolved homicides. The tip was flagged as spam and never reached investigators. It wasn’t a system breach: the model was carrying out a test on real webpages, and its instructions hadn’t explicitly ruled out form submissions. (Anthropic’s account; CBS News’ report)

That distinction matters. This wasn’t an AI breaking into a police system or evidence that automated tools are overwhelming business websites. It was a test that reached a live form—and a reminder that a “Submit” button can set real events in motion.

AI agents and website forms: the gap between a task and an action

Anthropic says the model had been asked to generate and perform example tasks on randomly selected webpages. It wasn’t instructed to mislead police, but the instructions didn’t forbid submitting forms. The model left the name and contact fields blank; the form allowed that, and the tip was submitted.

For a person, a form may feel like a straightforward conversation: explain what you need, enter the details, and send. An AI agent can interpret it as a task to complete. If the request or the page’s instructions leave room for interpretation, the agent may take an action the site owner didn’t intend.

That’s not a reason to make every form harder to use. It is a reason to treat forms as part of a workflow—not just a set of fields and a button.

Match safeguards to what the form does

A newsletter signup and a payment authorization don’t carry the same consequences. Start by asking what happens after someone submits the form: Does it simply collect a message, or does it trigger a booking, charge, official request, or change to a customer’s data?

For more consequential actions, consider safeguards such as a clear review step, a way to correct or reverse a submission, or human review before action is taken. The right choice depends on the workflow; extra steps on every form can frustrate customers without making the process meaningfully safer.

Some accessibility standards also set specific error-prevention requirements for certain transactions. For example, WCAG 2.2 Success Criterion 3.3.4 applies to pages involving legal commitments, financial transactions, certain changes to user-controlled data, or test responses. It calls for at least one safeguard: reversibility, an opportunity to correct errors, or a way to review and confirm before finalizing.

Test the real workflow—without using real customers as test data

Testing should happen in a safe environment with dummy data, not by sending experimental submissions through live customer or public-service forms. Check what happens when fields are missing, entries are invalid, or a submission is repeated. Confirm that error messages and confirmation pages explain what happened and what the visitor should do next.

Spam controls can help, but they’re only one layer. In Philadelphia, the tip was caught as spam; that outcome doesn’t make it a good idea to rely on filtering alone. For important workflows, decide in advance what should be automated, what should be paused, and when a person needs to review a request.

Keep forms clear and usable

A practical response to AI agents isn’t to block every automated visitor or add friction everywhere. That can make a site less usable for customers, including people who rely on assistive technology or other tools to navigate.

Instead, make the form’s purpose, required information, and next steps easy to understand. Use safeguards in proportion to the consequences. A low-stakes inquiry may need little more than clear instructions and useful validation. A request that could create a significant commitment deserves more careful handling.

The Philadelphia case was limited: one test submission, caught as spam, with no reported unauthorized access to police systems. But it illustrates a design principle that applies well beyond AI: websites should make actions understandable, predictable, and appropriately checked. That’s good for people using a site directly—and for the automated tools they may ask to use it for them.

Have a project this made you think about?

Tell us about your project