For an ecommerce chatbot, separate product questions, current store data and customer-specific actions first. Explaining a feature, showing stock and changing a delivery address need different sources and controls. The worked product and order tests below help define which information the assistant should use for each task.
Separate general knowledge from changing data
Product explanations and usage information can come from approved content. Define a current source for stock, prices and campaign conditions. Order status requires access to the correct customer and order. Record the source and update process for each information group.
Example product: TABLE-120-OAK and TABLE-160-OAK are distinct variants. When asked whether “this table” is available, the chatbot should clarify the size. Stock for the 120 cm option must not be presented as availability for 160 cm. These are illustrative requirement-test codes, not actual stock or delivery information.
Test providing information separately from changing records
Put the distinctions below in the first-release scope. It is not enough for the bot to say it can perform an action: verify the source, required checks and actual system result together.
| Task | Source or check required | Acceptance condition |
|---|---|---|
| Explain TABLE-120-OAK dimensions | Approved product properties | 120 and 160 cm options remain distinct |
| Show variant availability | Current stock record for the selected variant | Does not announce availability when the lookup fails |
| Show order status | Customer verification and authorised order access | Does not reveal another customer’s order |
| Change a delivery address | Eligibility, customer approval and write permission | Does not announce completion before a successful result |
| Explain returns conditions | Applicable store policy | Providing information is not counted as creating a return |
Design conversation that handles uncertainty
Product comparisons should use verified attributes and the customer's stated requirements. The assistant should not invent technical compatibility to provide a definitive recommendation. Where information is missing, it can offer the relevant page, verification route or human support. Answering every question is not a useful definition of reliability.
Summarise the relevant part of a policy instead of pasting the entire document, and link to the authoritative explanation where appropriate. Preserve conditions and exceptions when shortening the answer. Provide an escape from repeated, unhelpful responses when the customer needs more assistance.
Test failed stock lookups and address changes
In a test, make the 120 cm variant available and the 160 cm variant unavailable. Ask using an incorrect product name and an unclear size to check clarification. Then make the stock connection fail. The assistant should explain the problem and offer an appropriate route without presenting an old value as certain.
Make the order system reject a test address change. The chatbot must not announce success; it should explain that the previous address remains only if that state can actually be verified. Repeat the request to check that it cannot create a second unintended action. Record product knowledge, access, action outcomes and appropriate human support separately.
- Does each answer type have an authoritative source?
- Are freshness and variant checked?
- Are private access and action permissions separate?
- Is there a route to correct a wrong response?