Back to writing

Stopping an AI assistant from lying

I built an AI assistant into a live business website. Connecting the API took an afternoon. Stopping the assistant from lying took far longer.

AI models hallucinate. They will state a price you do not charge, or describe a service you do not offer, and they will sound certain while doing it. For a business assistant, that is a disaster. A customer who is quoted the wrong price either feels cheated or holds you to it.

So I built Mo to stay honest. Mo is the assistant on the Mo'Websites site, built on the Anthropic Claude API. It works under five rules:

  • It answers only from the site's real content.
  • It refuses to make up a price.
  • It resists attempts to manipulate it.
  • It keeps to a cost limit.
  • It passes real enquiries into a live pipeline, and hands over to a person when a question needs one.

Then I tried to break it. I told it to invent discounts. I asked it to reveal its instructions. I told it to claim clients it never had. It held every time.

Anyone can call an AI API. Understanding the model well enough to keep it truthful is the part that takes engineering, and it is where my data science background was most useful.

Mo is live. Open it and try to break it yourself.

Try Mo (opens in a new tab)