💬 Chatly

← Back to blog

How-to

Teach the AI from your website and documents

· Chatly Team · 7 min read

You already have the answers. They sit on your delivery page, inside a price list PDF you send on WhatsApp, and in the head of the one staff member who has been with you longest. The problem is that customers ask at ten at night, or while that person is off, or twenty times a day about the same thing.

Chatly's AI agent answers from your own knowledge, and only from that. It does not make things up from the wider internet. So the quality of its answers depends almost entirely on what you teach it. This guide walks through how to do that properly, from crawling your website to testing in the playground before a single customer sees a reply.

What the AI actually learns from

There are two sources of knowledge:

When the AI answers, it shows the source it used. When it is not confident, it hands the conversation to a human instead of guessing. And every question it could not answer is logged so you can review it later. Those three behaviours matter more than anything else here, because they let you see what it knows and fix what it does not.

SourceGood forHow it stays current
Website crawlPolicies, product pages, FAQs, opening hours, location detailsRe-crawled weekly
PDF uploadBrochures, course outlines, terms, price lists you already shareUpload a new version when it changes
CSV uploadStructured lists such as delivery areas, branch details, product specsUpload a new version when it changes
Text uploadAnswers that live only in your team's headsEdit and upload again

Step one: crawl your website

Start with the website, because it is usually the most complete and the most public record of how your business works. If you have not set up a workspace yet, create a free one. AI answers and knowledge are included on the Free plan.

Before you start the crawl, spend ten minutes on your own site:

  1. Check your sitemap exists and is current. Because the crawler is sitemap aware, a tidy sitemap helps it find the pages that matter. If you use a common website builder or CMS, a sitemap is often generated for you.
  2. Look at robots.txt. If an important page is blocked there, the crawler will skip it. That is by design. Decide whether the block is intentional.
  3. Read your key pages as a customer would. Delivery, returns, payment, opening hours, admission requirements, booking. If the answer is vague on the page, it will be vague in the chat.

That last point catches most people. A delivery page that says "we deliver nationwide, contact us for details" teaches the AI to say exactly that. If you want it to explain which areas get next-day delivery and which take longer, the page has to say so.

Step two: upload what is not on the website

Most small businesses run half their operation outside the website. The school has a fees and uniform PDF that parents receive on WhatsApp. The clinic has a list of which tests need fasting. The online shop knows that orders placed after a certain time go out the next working day, but nobody wrote it down.

This is what uploads are for.

PDFs

Upload the documents you already send customers again and again. A PDF that is mostly text works best. If a document is a scanned image of a printed page, consider typing the important parts into a text file instead, so the content is readable.

CSVs

CSVs suit information that is naturally a list or a table. A few examples:

Use clear column headings. "Area" and "Delivery time" will serve you better than "Col A" and "Notes 2".

Text files

This is the most underused option, and often the most valuable. Sit with your most experienced support person and write down the answers they give every day. Write them as plain questions and answers:

Q: Can I pay on delivery?A: Pay on delivery is available in the areas listed on our delivery page. For other areas, payment is by transfer before dispatch.

Short, factual, no marketing language. You are writing for the AI to quote back to a customer, so write the way you want your support to sound.

Why did the AI not answer a question my website clearly covers?

This is the question I hear most after a team switches it on. Usually it is one of these:

The unanswered questions log is how you find these. Read it regularly, then fix the source: edit the web page, or upload a text file with the missing answer.

Step three: test in the playground before going live

The playground lets you ask the AI questions and see its answers before customers do. Use it properly. Do not just ask the easy questions you know are covered.

Write a test list of twenty or so real questions. Pull them from your WhatsApp chats, Instagram DMs and email. Include the awkward ones:

For each answer, check two things. Is it correct? And does the source it shows make sense? If the AI quotes an old promotion page for a question about current delivery times, that page needs updating or removing from your site.

When an answer is wrong, resist the urge to fix it in your head and move on. Fix the source, then ask again.

Keeping the knowledge fresh

Your website is re-crawled weekly, so changes you make there will be picked up without you doing anything. That is a good reason to keep the website as your main source of truth where you can.

Uploaded files are different. If your fees change or you add a new branch, upload the new version. Make it someone's job. On a small team, I have found it works best when whoever changes the price list is also the person who updates the file in Chatly, in the same sitting.

A simple weekly habit helps:

  1. Read the unanswered questions log.
  2. Group them. Five people asking about weekend delivery is one gap, not five.
  3. Fix the gap on the website or in a text file.
  4. Retest those questions in the playground.

What software cannot fix

The AI can only be as clear as your policies. If your team gives three different answers about refunds, the AI will reflect that confusion or hand off every time. Agree the answer first, then write it down.

It also will not replace judgement. An angry customer, a medical worry, a parent chasing a child's results: these need a person. The handoff exists for this. Make sure someone is actually there to pick up, and set your welcome message so customers know what to expect when nobody is online.

If the widget is not on your site yet, start with adding live chat to your website, then come back to this. You can see the rest of what the workspace does on the features page.

Try Chatly free. Live chat, a shared inbox and AI answers from your own content, ready the same afternoon.

Create your workspace

Keep reading

Let the AI check order status for customersGreet visitors on the right page with triggersReply to customers from your Android phone