How to build an AI knowledge base for your store
Your chatbot knowledge base decides what the AI can answer. Learn which documents to include, how to structure them and how to keep them current.
- Published
- Last updated
Build an AI knowledge base by collecting approved store documents, splitting them into clear sections and connecting them to your agent. Keep changing product information in the catalogue feed. Assign a document owner to review policy changes and fill gaps from customer questions.
You’ll need access to the current policies, product manuals and the agent’s document settings. A customer service lead must approve the facts before customers receive them. Use the sections below in this order.
- Choose the documents and remove old versions.
- Rewrite unclear sections and staff replies into reusable policy answers.
- Load the documents, connect the catalogue and set the agent’s tone.
- Test questions against the approved answers, then assign ongoing reviews.
What makes an AI knowledge base different
An AI agent knowledge base is the set of store documents an agent searches before it replies. A help centre gives people pages to browse. The agent needs passages that make sense when retrieved separately from the rest of a page.
An AI-powered knowledge base can find passages by meaning, beyond exact keyword matches. A customer asking “Can I send these shoes back?” can retrieve a section about returns. The answer still depends on the policy’s conditions. Retrieval doesn’t turn a vague policy into a reliable rule.
Document indexing prepares imported passages for search. Keep a document index with each source’s title, version, owner and the products it covers.
Keep each document’s title and source with its text. If two documents disagree about a return window, resolve the conflict before loading them. Let the agent hand an unresolved case to staff instead of choosing between incompatible rules.
Which documents to include, payments too
Include the store documents customers need to make a purchase and understand what happens afterwards. Start with this inventory.
- Shipping regions, delivery estimates, dispatch times and collection rules.
- Returns eligibility, exclusions, return costs and refund processing.
- Sizing charts with units and instructions for taking measurements.
- Care instructions for the materials or products they cover.
- Warranty terms and the route for reporting a faulty product.
- Store locations, opening hours, contact details and service availability.
- Accepted payment methods and buy-now-pay-later terms.
Leave out drafts, staff-only notes and outdated promotions. Keep an approved promotion only while its terms apply. Remove customer names and order details from reusable documents.
Use current policy pages as your chatbot training data. Remove duplicate documents so an old copy can’t compete with its replacement. Date every document and keep its approval and review details in the document index.
For Afterpay questions, document whether your store accepts it and where it appears at checkout. State any store-specific purchase restrictions and how cancellations or refunds are handled. Record the regions and currencies your store supports. Add any minimum or maximum purchase rules it actually applies.
Separate your store’s terms from decisions the payment provider makes. The agent mustn’t promise that Afterpay will approve a customer’s purchase or change their repayment schedule. An answer about payment eligibility needs the relevant approved provider terms as well as your store’s checkout rules.
Loading product manuals
Load product manuals, assembly guides and specification sheets so the agent can answer setup and usage questions before and after purchase. Link each document to the exact models or product identifiers it covers.
Use text-based PDFs or web pages where your chosen system supports them. A scanned image needs text extraction and a reading check before it becomes a usable document. Confirm that headings, diagrams’ instructions and table values survive the import.
For a hypothetical desk range, attach the assembly guide to the desk model, not every item in the furniture category. State which fittings belong to that model. Keep a safety instruction with the step it governs, and avoid merging instructions from different editions.
After loading a manual, ask a question whose answer appears in it. The agent must give the instruction for the requested model. If the answer uses another model’s instructions, check the document’s product mapping and imported text before adding more content.
Writing for AI retrieval
Write short sections with clear headings and one fact per sentence so the agent can retrieve the rule a customer needs. Keep a condition next to its exception. Replace “as above” with the actual subject when a passage might be read alone.
Consider this hypothetical policy paragraph before restructuring:
Dispatch is usually quick but custom pieces take longer. Express delivery is available for some items depending on where you live.
A usable layout separates the unanswered questions:
Standard dispatch
Ready-made items leave the warehouse within two business days.
Custom dispatch
Allow ten business days for custom pieces to leave the warehouse.
Express eligibility
Express delivery is available for ready-made items sent to metropolitan addresses.
Those are invented example terms, not promises for your store. Replace them with the approved facts. The worked example shows how to organise a page.
For each section, ask what the customer needs to decide. “Dispatch” must distinguish warehouse processing from delivery after dispatch. Keep those durations separate so the agent doesn’t present a dispatch estimate as an arrival promise.
Give each answer a traceable source
Place inline citations beside the claim they support, with a link to the relevant passage or an approved source record identifier. A page title alone can hide which condition the agent used.
For example, a refund answer could say:
If your product has a major problem, you can choose a refund or replacement. ACCC, major product problems
The cited source says, “When a product has a major problem, consumers can choose between a refund or replacement.” The condition “major problem” must remain in the answer. A citation identifies evidence. It doesn’t prove the agent interpreted that evidence correctly.
For store policy answers, retain the approved document version and section identifier with the retrieved passage. If a replacement policy changes a condition, withdraw the old passage and test the answer against the replacement. If the source cannot be opened and no approved copy is available, hand the question to staff. An old citation mustn’t become permission to guess.
Turning canned responses into agent answers
Rewrite canned responses into policy facts before adding them to a chatbot knowledge base. Staff macros often contain greetings, merge fields and decisions about one customer’s order. Strip those elements and retain the reusable rule.
Here’s a hypothetical refund email template staff might use after approving a change-of-mind return:
Thanks for contacting us. We’ve approved your return under our 30-day change-of-mind policy. We’ll refund your original payment method within five business days of inspecting the returned item.
Turn that reply into a short refunds document:
Customers can request an eligible change-of-mind return within 30 days of delivery. Approved refunds go to the original payment method. We process the refund within five business days of inspecting the returned item.
State the window, method and timeframe once. Keep the return conditions in the same document, and distinguish store processing from time a payment provider takes to display the refund. Use your store’s approved durations before loading the text.
A change-of-mind window mustn’t limit a customer’s rights for faulty goods. The ACCC explains that consumer guarantees can’t be taken away by store policies. Keep faulty-product procedures separate and route disputed cases to staff.
Keep order-specific canned responses with people. An apology for one late order, a goodwill refund approval or a reply about a disputed parcel depends on that case. The agent answers the general policy and hands the conversation to a person when a decision is needed.
FAQ content with FAQ schema
One set of question-and-answer content can support your agent and a public FAQ page. FAQ schema, also called FAQ structured data, labels the questions and answers for systems that read structured markup. The agent still needs access to the answer text through its configured document source.
Google no longer displays FAQ rich results, as recorded in Google Search Central’s documentation updates. For a store, FAQ schema describes the content for machines that use it. It doesn’t create a Google FAQ rich result or guarantee AI citations.
To add FAQ schema, first publish the complete question and answer as visible page content. This hypothetical example uses the same dispatch rule in the visible answer and markup:
How long does standard dispatch take?
Ready-made items leave the warehouse within two business days.
Add a JSON-LD block, a script containing structured data, to that page’s HTML:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "How long does standard dispatch take?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Ready-made items leave the warehouse within two business days."
}
}
]
}
</script>A free FAQ schema generator can draft this markup. A person must check that every FAQPage answer matches the visible text and validate the syntax before publishing. Update both representations when the policy changes. The guide to creating a store FAQ page covers the public page itself.
Giving the agent your tone of voice guide
Keep tone rules in a separate document so a policy update doesn’t change how the agent sounds. The guide must describe the brand’s normal words, formality and response style.
For a hypothetical Australian homewares store, the guide might ask for warm, brief replies and everyday language. Use “basket”, “delivery” and “we”. Avoid “valued customer” and promotional praise. Use contractions, and explain the next action without blaming the customer.
Choose a chatbot personality that suits the store without changing the policy. These three chatbot personality types answer the same hypothetical question: “Can I return an unused item after 20 days?”
- Restrained: “An unused item can qualify for a change-of-mind return within 30 days of delivery. The policy’s exclusions still apply.”
- Friendly: “Yes, an unused item can qualify within 30 days of delivery. Let’s check the policy’s exclusions before you send it back.”
- Expert: “The change-of-mind window is 30 days from delivery. An unused item qualifies only if it meets the policy’s eligibility conditions and exclusions.”
These sample facts are hypothetical too. Set humour rules that exclude complaints and safety instructions. Apologise for a service problem without promising compensation. When a fact is missing, say what staff need to confirm and arrange a handover. Tone must never override product facts, prices, policy or refusal rules.
Keep mobile answers short and qualified
Lead with the answer on a phone and keep any extra explanation optional. Keep a price beside its unit and any offer eligibility. Retain warnings and conditions that change the answer, even when they add a line.
The earlier hypothetical refunds document can become this shorter reply:
For an eligible change-of-mind return requested within 30 days of delivery, we refund your original payment method within five business days of inspection.
The short answer retains eligibility, the request window, payment method and processing trigger. An optional explanation can show the return conditions and distinguish processing from the payment provider’s display time. Don’t shorten it to “Refunds take five days”, which drops the business-day rule and the inspection condition.
Connecting the product catalogue
Connect the product feed for prices, stock and product attributes instead of repeating those facts in policy documents. A copied price can survive in an old document after the catalogue changes.
Documents explain how the store handles delivery or returns. The catalogue identifies the product and supplies its current commercial details. Use product identifiers to connect a manual or category guide to the correct items, and remove product-specific stock statements from reusable answers.
Test a product question alongside a policy question. The product answer must match the feed, while the policy answer must match the approved document. The guide to product feed optimisation explains how to prepare the catalogue data the agent draws on.
Keeping answers current
Review documents whenever a policy or promotion changes, with a monthly review to catch missed updates. Give each document one accountable owner and keep the approved source version outside the agent as well.
When a policy changes, update the source and its public page before replacing the agent’s copy. Remove superseded versions from retrieval. Then repeat the questions affected by the change before exposing the revised answers to customers.
Prepare an approved source pack before the assistant answers questions about a range launch or promotion.
- Identify new products and variants by their catalogue identifiers. Confirm availability and the product details customers will need.
- Record offer conditions, including eligible items, exclusions and when the offer starts and ends. Name any changed delivery or returns rules.
- Assign an owner to each approved fact. Retire contradictory documents and keep the replacement versions in the source pack.
- Load the changes and run launch-specific questions before releasing them. Ask about a new variant, an unavailable item and an excluded promotion purchase.
Expect each answer to match the approved product or policy source and retain its conditions. A catalogue update alone doesn’t establish that every connected system has refreshed. Confirm that the agent retrieves the changed sources.
Review launch conversations for missing or outdated answers. Correct the source that caused the error, then rerun the affected questions before releasing that correction.
Use a short acceptance check:
- Ask a returns question using different wording from the document.
- Confirm the answer states the approved window and eligibility conditions.
- Ask about an excluded case and confirm the agent doesn’t promise an exception.
- Try a question the documents don’t answer. Expect a handover to staff without an invented rule.
If an old answer persists, check whether the previous document remains searchable and whether the replacement has finished processing. If a condition disappears, inspect the section boundaries. Keep the exception with the rule and repeat the failed question. Use the AI answer testing guide to expand the acceptance check.
Assign source ownership in Shopify
A Shopify knowledge base gives AI agents store facts to use in their answers. Shopify’s knowledge base for agentic storefronts replaces the Shopify Knowledge Base app. Its FAQ management guidance identifies the new location under Sales channels > Agentic in the admin.
Keep product identifiers, variants and current prices in the catalogue. Assign shipping and returns facts to their approved policy sources, with a named owner for each. When a policy changes, that owner updates the source and checks any customised answer that could retain the old rule.
Public help articles give customers pages to read. Agent retrieval content supplies passages to a connected assistant. A private staff document doesn’t become safe to share merely because it answers a question. Remove customer details and internal instructions before approving retrieval content.
After changing a return condition, ask the connected agent an eligible-return question and an excluded-case question. Compare both answers with the approved policy. Check the source it matched where that information is available, then record the owner’s acceptance before using the changed answer with customers.
Filling gaps from unanswered questions
Review unanswered-question logs each month and turn repeated gaps into approved document updates. Group questions by the missing fact, such as rural delivery eligibility or a product’s cleaning instructions.
For each group, decide whether the answer belongs in a policy, a manual or the catalogue. Ask the responsible person for the fact, add it to the existing source and remove any conflicting text. Keep private order problems in the staff workflow.
Replay the original question and one differently worded version after the update. Both answers must match the approved fact and retain its conditions. Leave the gap assigned to its owner until that check passes.
Give your store its own shopping agent
Customers ask in their own words. Your agent finds, compares and checks out from your catalogue, right on your site.