Rules or knowledge base: where to put an instruction
The agent reads your Operational Rules and Brand info in every reply. For Q&A, web pages and documents, the agent searches for the entries that match the customer’s question. It uses only the best matches.
Fix a wrong answer from the AI agent
You can correct an AI answer from the conversation where it happened.- Open the conversation in the Inbox.
- Under the AI reply, click Why this answer?. A short explanation shows the sources that the agent used. Click a source to open it.
- If a source has wrong or old information, edit or delete it in the Knowledge Base.
- To teach the correct answer, put the pointer on the AI reply and click Revise answer.
- Write the correct reply in Expected response and click Update Answer. TextYess adds a Q&A with this answer to your knowledge base.
- If the problem is a behavior, such as tone or an offer, add a rule in Operational Rules.
- Ask the same question in the test chat on the agent page.
Write operational rules that the AI agent follows
Operational Rules are on the Instructions tab of each agent page. The agent reads them in every reply.- Write one rule for one situation. Use the format “If the customer asks about X, do Y.”
- To let the AI format a rule for you, click Add rule, describe the rule, and click Generate.
- Put facts, such as prices, times and policies, in the Q&A tab of the Knowledge Base. Put behavior in the rules.
- Make sure that two rules do not say different things. If two rules conflict, the WhatsApp agent follows the more specific rule.
- Click Publish. Customers get answers with the new rules only after you publish.
The AI agent does not follow a rule
If the AI agent ignores one of your Operational Rules, do these checks:- Make sure that you clicked Publish after you changed the rule.
- Ask the question in the test chat on the agent page.
- In the Inbox, click Why this answer? under the reply. A Q&A or a web page can say something different from the rule. Fix or delete that source.
- Make sure that no other rule says the opposite.
- Use the correct setting for the topic: Escalation rules for handovers to your team, Discount codes for codes, Order Tracking for order questions.
Fix a product that the AI says is available when it is not
The AI agent reads stock from your product catalog in TextYess. TextYess updates the stock when your store reports that a product went out of stock or came back in stock. If your store does not report a change, the catalog keeps the old stock.- Open the Product Catalog tab of Agents → Knowledge Base.
- Search for the product and click it. Look at Inventory and AI Recommendation.
- If the data is different from your store, click Resync. TextYess reads the product again from your store.
- If many products are wrong, click Resync Catalog. You can do this once a day.
Fix product links from the AI agent that open a 404 page
The AI agent takes product links from your product catalog in TextYess. For your home page, it uses the website address in your settings. The agent is told to send only these links and never to build a link itself. A product link can be old in these cases:- You changed the web address (handle) of the product in Shopify. A product update from your store does not change the saved link.
- You deleted, archived or unpublished the product, and your store did not report the change.
Make the AI agent share your discount codes
The AI agents do not read the discounts on your website. They share only the codes that you allow on the agent page.- Open Agents → WhatsApp Agent or Agents → Onsite Agent, and select the Tools tab.
- Turn on Discount codes.
- Shopify stores: in Allowed discounts, select the codes. The list shows your active Shopify discount codes. Automatic discounts have no code, so they are not in the list.
- Other stores: write the code and when to offer it in Behavior rules (optional).
- Click Publish.
Why the AI agent gives different answers to the same question
The AI agent writes each reply new, so the words can change from one conversation to the next. The facts come from your rules, Brand info, Q&A, web pages, documents and product catalog. For each question, the agent searches your knowledge base and uses the entries that match best. If two entries say different things, the answers can be different. To get the same facts every time:- Keep one Q&A for each topic. Delete old or duplicate Q&As.
- Make sure that your web pages and documents agree with your Q&As and rules.
- Use Revise answer in the Inbox to save the correct answer as a Q&A.