

To prevent AI hallucinations in an agent trained on your documents, give each topic one current file and keep every rule in the same chunk as its exception. Then instruct the agent to refuse and offer a person when no file answers the question. By default, our training cuts files into 1,024-character chunks with a 200-character overlap, so an exception written a page after its rule can reach the model alone. Before launch, run about 30 real tickets through the agent, including some your files cannot answer, and open the source behind every reply.
A customer asks what a team seat costs. The pricing page in Notion changed in March, but a sales deck in Google Drive still shows last year’s price, and your team trained both. The agent quotes the deck with full confidence, and the customer screenshots the old price into a billing dispute.
The agent repeated a stale file your team trained, which is how hallucinations show up in production. An AI hallucination is an answer an AI states as fact that none of your current sources support. Prompt wording helps prevent AI hallucinations at the edges, while the larger fixes live in the sources the agent reads and the rules around them.
This blog walks through seven steps for setting up and maintaining a production AI agent in YourGPT using Notion, Google Drive, Confluence, and PDFs.
A trained agent answers through retrieval-augmented generation (RAG). Training turns each page and file into searchable knowledge nodes. For each question, it pulls the closest nodes and writes its reply from them, so every invented answer traces back to one of five failures in that chain.
| Cause | What the customer sees | Step that prevents it |
|---|---|---|
| Two files disagree | An old price or retired policy | One owning file per topic |
| A page was never trained | A guess where a fact should be | Import every page the topic needs |
| A rule and its exception split | The rule without its condition | Shape PDFs into whole chunks |
| No file covers the question | A plausible answer from general knowledge | Refusal rules and a handoff |
| A file changed after training | Last quarter’s answer | A refresh habit per source |
All five causes trace to your files or your settings. A larger model fixes none of the first three rows, because it answers from the same stale deck, missing page or split rule.
Conflicts are cheapest to catch before anything is connected. List the topics customers ask about (pricing, plans, refunds, security, integrations, setup) and write the single file that owns each one. If a second file mentions the topic, the owner removes it from training or rewrites it to point at the owning page.
Take a software company whose Confluence engineering space holds a draft roadmap page saying single sign-on is “coming to the Starter plan.” The published plans page in Notion lists SSO on Enterprise only. Train both, and anyone asking about SSO on Starter may hear a promise nobody approved. The topic list settles it: plan features belong to the plans page, and roadmap drafts stay out of a customer-facing agent.
Check three kinds of files first, because each one repeats a topic it does not own:
Write a named owner beside each topic while the list is open. The owner edits that file and retrains it, so every refresh after launch has one person responsible for it.
With the topic list settled, connecting becomes a selection exercise. In the YourGPT dashboard, open Training, click Add New, then open the Others tab. Notion, Google Drive, Confluence, Dropbox and OneDrive each appear as a card with a Click to import button, beside the other training sources such as website links, uploaded files and FAQs.

On the Notion card, click Click to import and connect your Notion account. A picker lists the pages the connection can read. Tick only what your topic list names, then click Start Training.
Anything created after the first import stays out of training until you add it, because training covers only what you selected. After an edit, refresh the Notion page from the Training list to pull the latest version.
Click the Google Drive card, approve the permission request in Google, choose the files and click Start Training. Dropbox and OneDrive have their own cards on the same tab. Imported files join the Documents list with their source shown, and each one should reach a Success status before you test it.

We document a refresh button for Notion only, so train a Drive, Dropbox or OneDrive file again after each edit and delete the older copy. A shared Drive folder can hold last year’s deck beside this year’s, so pick files one by one against the topic list.
Select the Confluence card and follow the prompts to connect your Atlassian workspace. A private page imports only when the integration account has access to it. If a restricted troubleshooting space comes through empty, grant that access in Confluence and import again.
A Confluence space can hold help articles beside engineering notes. For a customer-facing assistant, import only the articles written for customers.
A single PDF can cover ten topics across forty sheets, which makes it harder to retrieve from than a focused Notion doc. Upload PDFs from the Documents tab under Training with Add New, which accepts PDF, DOCX, PPT, CSV and TXT. The way you lay out the text then decides which passage the agent can find.
By default, training cuts each file into chunks of 1,024 characters with a 200-character overlap, and Advanced Training lets you change both numbers. In English, 1,024 characters is roughly 170 words, or about two short paragraphs. At answer time, retrieval returns the closest chunks instead of the whole file.
Picture a security whitepaper that states “backups are kept for 35 days” on page 4 and adds “EU-hosted workspaces keep backups for 14 days” in a footnote on page 11. The two lines are thousands of characters apart, so they land in different chunks, and a 200-character overlap cannot bridge them. A question about EU backup retention can retrieve the page 4 chunk alone, and the agent answers 35 days.
Write every exception inside the paragraph that states its rule. Then apply four habits to each PDF before upload:
~~~ on its own line, and keep each section under about 1,000 characters so the chunker can break at your marks.Tags help once the file count grows. Add a tag to each dataset in the Training list, then filter by tag to train one product line or category at a time.
Restrictions prevent AI hallucinations on questions your knowledge base never covers, which even a clean set of sources leaves behind. Open General Settings → Agent Settings, where the Agent Prompt (Bot Persona) sets role and tone and Restrictions set the boundaries.
Consider a question like “Does your API send a webhook when an invoice is paid?” If no trained file mentions invoice webhooks, an unrestricted model may describe a plausible event that does not exist. Paste rules like these into Restrictions:
Three settings in the same panel shape how much room the model has. Temperature controls creativity, so keep it low for support answers. Knowledge Base Nodes limits how many retrieved nodes feed each reply. The AI model is chosen here too, and models differ in how closely they follow rules like these, so compare the right LLM for customer support before you settle on one.
Each refusal should end with a person. Turn on the Request Human button under Widget Settings → Follow-up Actions so “I don’t have that information” leads to your team, and plan who receives it with our human escalation playbook.
Before customers meet it, test what the assistant declines as well as what it answers. A test set built only from questions your files cover measures retrieval and never measures restraint. Build about 30 test questions from last month’s tickets, copied in the customer’s own words, and make at least a third of them questions the agent should refuse or hand off.
| Ticket type | Where to find it | Pass condition | Where to verify |
|---|---|---|---|
| Answered by one file | Common tickets from last month | Figures match the file | View Source shows that file |
| Rule with an exception | Tickets where the exception applied | Reply states the condition | Source chunk holds the exception |
| Topic with old versions | Tickets after a price or policy change | Current figure only | Source is the owning file |
| Not covered by any file | Tickets your team answered from experience | Says it lacks the answer and offers a person | No invented specifics in the reply |
| Internal information | Discount or roadmap requests | Declines without detail | Training Audit finds no internal page |
| Outside your business | Off-topic chats from the widget | Declines and returns to support topics | Reply carries no general knowledge |
Run each question in a fresh chat, then open the conversation and click View Source to see what each reply drew on. A correct answer drawn from the wrong file counts as a fail, because the next question on that topic will retrieve the same source.
To compare models on the same set, open Agent Playground. It runs up to five model emulators from one shared input, so every model gets an identical question, and it shows response time and credit use beside each reply.
Each wrong answer in testing points at one source. Start from the reply: on the Conversation page, open the chat, click View Source, then click the source button to open its nodes in Debug Lab.
If you know the bad phrase but not its origin, open Debug Lab, go to Training Audit, type a phrase from the wrong answer and click Find. Results come back ranked with a Match Score from 0 to 1. Click Find Document on the top result to open its entry in Training Datasets, filtered to that node.
Say a reply tells a customer onboarding calls last 90 minutes when the current offer is 45. Training Audit on “onboarding call” ranks a 2024 onboarding PDF above the current Notion page. Delete the PDF from training, retest the ticket, and the Notion page takes the top match.
Make the correction at the source. Retraining can overwrite edits you made to its extracted nodes in Debug Lab, so the lasting fix goes into the Notion page, the Confluence article or the PDF.
Training Data Anomaly Detection catches some conflicts before a customer does. It compares your websites, files and text, then posts an alert at the top of the dashboard when two sources disagree. The alert lays the conflicting passages side by side so you can pick the correct one or edit it.
Prices, features and policies keep changing after launch, and each update reaches the knowledge base through the path its source supports.
| Source | How an update gets trained | Habit |
|---|---|---|
| Notion pages | Refresh on the trained page | Refresh in the same task as the edit |
| Drive, Dropbox, OneDrive and Confluence | Train the changed file again | Delete the older copy at once |
| Uploaded PDFs | Upload the new version | Delete the old version before testing |
| Website and help center links | Refresh per link or a monthly interval | Set Re-Indexing Interval to Monthly |
The monthly setting lives in General Settings → Re-Indexing Interval, and the refresh button on a single trained link pulls that page straight away.
New questions also arrive that no file covers yet. Self-Learning, on the Others tab under Training, lists every question the agent could not answer. Click Train, write the correct answer and click Start Training, and the answer moves to your FAQs. Work through that list in a weekly self-learning review so gaps close while they are still small.
Some answers need one fixed wording, such as a regulated disclosure. Add those under FAQs & Text as an exact question and answer pair, so the reply comes from that pair instead of a chunk of a longer file.
No. Training stores your content as searchable knowledge nodes, and the model reads the closest matches at answer time. The model’s weights never change, so removing a file removes its content from future replies after retraining. Fine-tuning bakes content into the model and makes a stale fact hard to remove. Our comparison of RAG and fine-tuning covers when each approach fits.
No. A prompt can tell the agent to refuse when no file answers, which covers questions nothing in the knowledge base addresses. It cannot correct a stale price, a page that was never imported or a rule split from its exception, because the agent still answers from what it retrieves. Write the Restrictions, clean the files they rely on, and test both together with real tickets.
There is no fixed cutoff. Match Score runs from 0 to 1, and each embedding model scores on its own scale, so one model’s 0.6 can rank as high as another’s 0.8. Read the order instead: the owning file should rank first for its topic. Our explainer on vector embeddings shows how that similarity is calculated.
Run two agents instead. Any page you train can appear in a reply, and Restrictions lower that risk without removing it, so internal Confluence spaces belong to an internal assistant only. YourGPT is SOC 2 Type II and ISO 27001 certified and GDPR compliant, which covers how we store your data, not what an agent may say.
Plans start at $39 a month billed annually on Essential. The Professional plan, at $79 a month billed annually, adds Self-Learning and Escalate to Human, the two features this method uses after launch. Billing runs on AI Credits with no per-resolution fee, and credit use depends on the model you pick and how many conversations the agent handles. Current plan contents are on our pricing page.
Expect the first Training Audit session to show a deck, a draft and a current page ranking for the same question. Clearing those duplicates takes longer than the import itself, so book that time before you pick a launch date.
For a wrong test reply, check three places in a fixed order: the file, then the chunk, then the rules. Open the source first, because a stale or missing file is the fastest cause to confirm. Look at chunk boundaries second, and change the prompt last.
Roll out AI support automation one topic area at a time. Billing or account setup makes a good first area, because the answers have clear owners and a wrong reply shows up fast in the queue. Add the next area only after the first one passes its test set twice in a row, and write fresh tickets for each new area.
Tie retraining to the change that triggers it. If a pricing change ships through a ticket in your project tracker, add “retrain the agent and rerun the pricing tickets” as a checklist item on that ticket. The reminder then travels with the work, and nobody has to remember it during a busy month.
After launch, watch how often the assistant offers a person, grouped by topic. Each handoff marks a question the assistant declined instead of guessing, so a rising count shows where AI hallucinations would otherwise start. A topic whose handoffs climb week over week points to a source that drifted or a question your sources never covered. Send that list to the topic’s owner each week, along with the customer’s exact wording, so the next edit answers the question people are asking.
Connect Notion, Drive or Confluence, upload your PDFs, then test with last month’s tickets.

A playbook for agencies selling white-label AI agents as a monthly service: what to package, what usage costs, what to put in the contract and what to report.


TL;DR AI booking agents let customers schedule appointments through chat using live availability. Clinics, salons, agencies, and education providers can apply their own rules for visit types, service duration, staff assignment, and class capacity. Start with one service, one calendar, and one channel. Confirm appointments only after the scheduler accepts them, and test taken slots, […]


TL;DR Most businesses lose qualified leads because they respond too slowly, not because their product is weak. A sales qualification bot engages visitors instantly, asks the right questions, evaluates fit automatically, and books meetings without human involvement. Built on YourGPT, the bot can be trained on your business knowledge, connected to your calendar, and deployed […]


Ten AI customer service tools for beauty and skincare brands, with what a chat reply may legally claim, a product-page checklist, a 12-question trial and a priced Black Friday month.


A comparison of 10 AI customer service tools for jewelry and luxury brands, grouped by tool type, with a 10-ticket trial and a shortlist by store setup.


TL;DR Retail customer service is changing as businesses handle more online orders, returns, and customer questions across multiple channels. Shoppers expect quick answers, accurate information, and consistent support, whether they contact a retailer through its website, phone, or messaging apps. Meeting these expectations with human agents alone can be difficult, especially during peak shopping periods. […]
