SectionAI agent & training
Train the AI agent on files and Q&A
In this article
Besides your website, the AI agent learns from your files — price lists, delivery terms, instructions — and from question-and-answer pairs. Pairs are handy when a question needs exactly your answer, as you wrote it.
The training volume in characters depends on your plan — see ayweb.chat/pricing.
Add files
- Open “AI manager” → “Training” → the “Files” tab.
- Click “Add new files” or drag files into the area below the button. PDF, DOC, DOCX, ODT, RTF, XLSX, TXT, CSV and JSON work.
- New files appear in the table with the “Pending” status. Click “Train” at the top of the section.
- Wait for “The chatbot has been successfully trained.”
To remove a file from training, select it in the table and click the delete button.
Add question-and-answer pairs
- Open the “Q&A” tab and click “Add pair”.
- In “Questions — wording variants”, type the question the way customers ask it. Use “Add wording” for other variants: “how much is delivery”, “delivery price”.
- In the “Answer” field, write what the AI agent should reply.
- Click “Train”.
If “Generate user questions” is on in the AI agent settings, the dashboard suggests 5 more wordings of the question by itself.
Actions together with the answer
In “Set data and actions” you can add what to do when a customer asks this question. Imagine a small online store: to a question about the wholesale price, the AI agent answers, adds a tag and hands the conversation to a sales manager.
- Assign
- “Assign tags”, “Assign a department”, “Assign an agent”.
- Show the customer
- “Go to URL”, “Show an article”.
- Notify
- “Send email to agents”, an email to the customer, a transcript.
- Hand over
- “Human takeover”, “Archive the conversation”.
“Tools calling” lets the AI call an external address of your system while answering — this is a setting for a developer.
Store catalog
The AI agent takes products, prices and stock from your OpenCart or WooCommerce catalog or a Google Merchant Center feed. How to connect a catalog — in the OpenCart and WooCommerce articles and in “Train the AI agent on your website”.
How to check
Open “AI manager” → “Playground” or the chat on your site and ask a question from a file or a Q&A pair in other words. The AI agent should answer from your data.
If it doesn’t work
- A file stays “Pending” and doesn’t train
- Click “Train” — without it, files don’t get into training.
- The AI agent answers from the website, not from Q&A
- Set “Training source priority” = “Q&A” in the AI agent settings.
- An answer from a file is inaccurate
- Add the key facts as a Q&A pair — that way the AI agent gets exactly your answer.
- The dashboard reports a limit
- Your plan’s training volume is used up. Delete sources you don’t need or upgrade your plan.
The AI agent knows only what’s in its sources. If you changed a price list or terms in a file, upload the new file, delete the old one and click “Train”.