A chatbot gives wrong answers when it’s missing information or hasn’t seen how your team answers. To fix it, connect it to everything your team uses to answer tickets, give it your past replies, then test it against real tickets until it answers the way your team does.
The testing is where most stores stop. We use Claude to run it: Claude asks the bot 50 to 100 real customer questions, compares each answer to what your team actually sent, finds the mistakes, fixes them and runs the test again. It keeps going until the bot gets close to 100%.
This works with the chatbot built into your help desk (eDesk, Freshdesk, Gorgias, Zendesk) or a separate one.
Steps 3 and 4 repeat until the bot gets close to 100%.
Step 1: Give the bot everything your team looks at
The bot can only answer from what it can read. List what your team opens to answer a ticket, then connect the bot to each one.
| Questions it should answer | What to connect |
|---|---|
| Product questions (sizing, specs, compatibility) | Your product pages |
| Returns, warranty, shipping times | Your policy pages and knowledge base |
| Where is my order | Your shipping system, or your store if tracking lives there |
| How to use the product, troubleshooting | Manuals, FAQs, internal guides |
Check how your chatbot takes in each source. Freshdesk’s AI Agent, for example, reads only public web pages, so anything behind a login has to be uploaded as a file (Freshworks).
Add your rules as written instructions: when to offer a discount, when to hand the chat to a person, what it never promises.
Step 2: Give it a year of real replies
Your team’s past replies show the bot how you answer: the tone, the details you include and the fixes you offer. A year of tickets covers seasonal questions, sales, shipping delays and product launches.
Some help desks let the bot read past tickets directly. eDesk’s AI Agent, for example, uses past interactions and order details from the ticket (eDesk). If yours doesn’t, export the tickets from your help desk or inbox and give them to the bot as files or question-and-answer pairs.
Remove tickets your team answered badly or that use an old policy before you hand them over. The bot copies what it sees.
Step 3: Test the bot against real tickets with Claude
Context doesn’t guarantee correct answers. You find out by asking the bot the questions customers already asked and checking its answers against what your team sent.
Doing this by hand takes days. Claude Code can do it for you. It needs two connections:
- The chatbot. Connect Claude Code to the bot’s API, or let it open your website in a browser and type into the chat window the way a customer would.
- Your ticket history. Connect Claude Code to your help desk through an API or MCP connector, or give it the same export you gave the bot.
Then have it pull 50 to 100 resolved tickets, ask the bot each customer question and score each answer against your team’s reply. You get a list of which answers were right, which were wrong and why.
Use a test page or a staging version of the chat if you have one, so test chats stay out of your live reports.
Step 4: Let Claude fix the mistakes and test again
For each wrong answer, Claude works out why the bot got it wrong and suggests a fix. Most fixes are one of three things:
- A missing rule: “Orders placed after 2pm ship the next business day.”
- Missing information: a sizing chart or a policy the bot couldn’t read.
- A missing source: the bot needs a connection it doesn’t have yet, like your shipping system for tracking questions.
You approve the fixes, Claude adds them to the bot, and the test runs again on the same tickets plus a fresh batch. Repeat until the bot gets close to 100%. Then run it again whenever you change a policy, launch a product or switch shipping carriers.
- A connection that lets Claude read your help desk can often change it too. The prompt below tells Claude to read only and to ask before changing anything. Review each fix before it goes live.
The prompt we start with
Copy this into Claude Code:
You are testing our customer service chatbot. Read only. Don't change the chatbot, our help desk or any customer record without asking me first. 1. Pull 100 resolved tickets from the last 12 months. Skip tickets that were escalated, refunded as an exception, or answered with a policy we no longer use. 2. For each ticket, ask the chatbot the customer's first message, word for word. 3. Compare the chatbot's answer to our team's reply. Score it correct, partly correct or wrong, and say what was missing. 4. Group the wrong answers by cause: missing rule, missing information, missing data source, or wrong tone. 5. For each group, write the exact fix: the rule text, the information to add, or the connection we need. 6. Show me the score and the fixes. After I approve them, apply them and run the test again on the same tickets plus 50 new ones.
What a trained bot does for your store
A trained bot fits when tickets wait too long for an answer, customers get upset, reviews suffer, or you’re about to hire another agent.
- Fewer hours on repeat questions. The bot answers order status, sizing and return questions, so your team works on the tickets that need a person.
- More sales. Shoppers get an answer while they’re still on the product page.
- Answers at night, on weekends and on holidays, when most stores have no one on support.
- The same answer every time. Every customer gets the answer your best agent would give.
- A list of what your site is missing. The questions customers ask the bot show which product pages and policies need more detail.
FAQ
Why does my chatbot give wrong answers?
Usually it’s missing information your team has, or it has never seen how your team answers. Steps 1 and 2 fix both.
How many tickets do I need to test with?
Start with 50 to 100 resolved tickets that cover your most common questions. Add a fresh batch on each run so the bot isn’t only tested on questions it has already been fixed for.
Does this work with my help desk’s chatbot?
Yes. The process is the same for the bot built into eDesk, Freshdesk, Gorgias or Zendesk, or a separate chatbot. Claude needs a way to send the bot a question, either through its API or through the chat window on your site.
Will the bot replace my support team?
It can take most of the repeat questions. Keep people on refunds, complaints, damaged orders and anything the bot isn’t sure about, and set the bot to hand those over.
How long does it take?
Connecting sources usually takes a day or two. The test and fix loop runs on its own; you review the fixes between runs.