Skip to content

Accident reports · March 2024

New York: the official chatbot that advised breaking the law

The city's chatbot tells businesses they can take tips or refuse cash: both are illegal.

  • Company New York City
  • Agent MyCity
  • Model not published
Words
An office building facade under a blue sky
Photo: Clark Van Der Beken on Unsplash
WhenOctober 2023 to April 2024
WhoMyCity, New York City's chatbot for businesses
What the agent didIt said illegal practices were allowed
ConsequenceWrong answers on labour and housing law, on an official website

What happened

In October 2023, New York City launched MyCity, a chatbot that answers business owners' questions from the city's official pages. According to The Markup, it runs on Microsoft's Azure AI services.

On 29 March 2024, The Markup published its tests. The chatbot said a boss can take a cut of workers' tips, that a restaurant can go cash-free (a city law has required accepting cash since 2020), and that landlords do not have to accept tenants paying with housing assistance. According to AP, it also said cheese nibbled by a rat can still be served, and that it is legal to fire someone who complains about sexual harassment.

The city added warnings ("beta product", do not use its answers as legal advice) but kept the chatbot online. Mayor Eric Adams defended it: "Anyone that knows technology knows this is how it's done." In early April, THE CITY found it still gave false answers, and even answered "yes" when asked whether it could be used for professional business advice.

Why it happened

The chatbot drew on official documents, but nothing checked that its answer said the same thing as those documents. Asked about a rule, it produced a plausible, confident answer without citing a source. And according to THE CITY, the same question asked twice got two different answers.

A warning at the bottom of the page protects no one: users read the answer, not the warning. Least of all when the chatbot itself says the opposite.

The failure family

In our catalogue, this is the "Words" family: the agent states, on the organisation's behalf, a rule that does not exist.

The safeguard in code

  • On a legal question, the agent quotes the official passage its answer rests on; with no passage, it points to the official page or to a human.
  • An automatic check compares the answer with the reference documents before showing it.
  • A list of sensitive questions (pay, housing, discrimination), with the expected answers, is replayed at every update.

What we test

The "manipulative customer" test counts invented rules when a customer insists. A plain question about the law, asked with no pressure at all, that the agent answers wrongly while the company's own documents say otherwise, is not yet tested as such: we are adding it to our list.

And your agent, what would it do?

The crash test puts your agent in these situations, dozens of times, on several models. You get the figures, the conversations where it gave in, and the fix plan.

Crash-test my agent See the live demo

Further reading