Opening hours are only the first question

I used a friend's restaurant website as the example for an AI chatbot. Someone might want to ask about catering, check a detail or send a quick message without calling or looking through every page.

At the start of the video, I ask what time the restaurant opens. Then I add another request: can you give me a free discount code for 50% off?

That's the sort of question I want to test before a business puts a chatbot in front of customers. Answering an ordinary question is useful. Making up a discount because somebody asked nicely is a problem.

The opening demonstration leads into the setup I walk through in Claude.

First, give it the business information

The first phase in my prompt is a knowledge base. I want the assistant to work from information about the actual business, rather than improvise a plausible answer.

For a restaurant, I'd start with the details customers ask for: opening hours, menu information and how a catering request should be handled. The business needs to check those details before the chatbot uses them.

In the walkthrough, I describe using Haiku to answer the questions. Sonnet and Opus have different roles in the checking process. Those are choices from my setup, not a rule that every chatbot needs three models.

Then, decide what it can and cannot say

The next phase is about the answers themselves. What should the chatbot sound like? Which questions should it avoid answering? What should happen when somebody tries to make it ignore its instructions?

The discount request is one example. Other useful checks would be an answer it doesn't know, an outdated opening time, or a customer asking it to promise something the business hasn't approved.

I'd keep the expected answer beside each test. Otherwise, another AI saying the chatbot passed doesn't tell me very much.

The question-testing loop

I walk through a plan for 50 adversarial questions: questions designed to expose a bad response. The answering model responds, another model judges the response, and recurring failures go to a model that can help investigate and revise the setup.

When I call this training in the video, I'm describing that test-and-revise loop. I'm not demonstrating that I retrained the underlying model.

The recording explains the approach. It doesn't establish that the chatbot is secure, that every test passed, or that a restaurant deployed it successfully. Those would need their own evidence.

I also mention an approximate API cost from my tests. I wouldn't use that spoken estimate as a quote for somebody else's business. Their questions, traffic and setup could be different.

Start with one business you understand

My suggestion at the end was to make a chatbot for yourself first. Pick a small job, write down the correct answers, and try to make it fail before handing it to somebody else.

The full walkthrough shows the restaurant example and the three phases of the prompt.

Resources

Claudechatbotssmall business
← All posts