Document parsing for AI agents: prepare files that parse well
An AI agent answers from the text it extracts, not from how your PDF looks. Five things that break parsing, a prep checklist and a check to run after upload.
Read articleAn AI support agent runs on four kinds of data. Learn what each one is, how to check its quality and which privacy controls to set before the agent talks to customers.
By the Askocto team · · 5 min read
AI data is everything an AI system reads, stores or learns from while it works. For a customer support agent that means four kinds: the knowledge it answers from, the conversations it has, the customer information it looks up and the feedback you collect about it. Good results depend on the quality of the first, and trust depends on how you handle the other three. This article describes each kind, the checks to run and the controls to set. It is not legal advice.
In short: Give the agent clean, current knowledge. Limit what personal data it can see, decide how long conversations are kept and make sure you can find and delete a customer's data on request.
Knowledge data is what the agent reads to answer: website pages, a help center, product documents, policies, price lists and approved question and answer pairs.
Quality checks:
Format matters too. Scanned images, tables saved as pictures and heavily designed PDFs may read poorly. The article on document parsing explains why, and structuring a knowledge base for AI shows how to lay content out so the agent finds the right part.
Conversation data is the record of what customers and the agent said. It is the richest source of improvement, because it shows what people really ask. It also contains personal details people type without being asked: names, addresses, order numbers, sometimes health or financial information.
Decide:
Customer data is what the agent looks up to help a specific person: order history, subscription status, booking times, contact attributes. The question here is minimum access. Give the agent only the fields it needs to do its job, and require the customer to be identified before it shares anything personal.
On a website, identity verification lets your server sign the user's ID so the agent knows the visitor is who your site says they are. Without it, the agent should not reveal account details. The identity verification documentation covers the approach in Askocto.
This is the data about how the agent did: ratings, handover reasons, unanswered questions, resolution outcomes and reviewer notes. It tells you what to fix. It also decides what you add to your test set, which is a small collection of real and written conversations that you replay after every change.
Keep this data tied to the version of the agent that produced it, so you can tell whether a change helped.
| Kind | Source | Main risk | Main control |
|---|---|---|---|
| Knowledge | Your content | Stale or contradictory answers | Owners, review dates, one source of truth |
| Conversation | Chats and tickets | Personal details stored longer than needed | Retention rules, masking, access limits |
| Customer | Your systems | Showing data to the wrong person | Identity checks, least access |
| Feedback | Ratings, reviews, outcomes | Misreading numbers without context | Read transcripts with scores |
Askocto provides data residency by region, role-based access, an audit log, two-factor authentication, PII masking as a guardrail and a data processing agreement. See the security page for the overview. Whether any setup satisfies a specific law or standard is a question for your legal advisers, and this article is not legal advice.
Some data should not enter an AI system at all unless you have a clear reason and approval:
If a customer pastes such details into a chat, set a rule that the agent does not repeat them, and mask them in storage.
Spend an hour answering these questions in writing:
For more on the legal and regulatory angle for chatbots in general, read GDPR and AI support chatbots, and for questions to put to vendors see security questions for AI support vendors. For how general assistants treat what you type, read does ChatGPT save data.
It needs knowledge to answer from, such as your help center and policies. For personalized help it also needs access to customer records, limited to the fields required.
Ask each vendor this directly and get the answer in writing, in their data processing terms. Do not assume either way.
Use the deletion options offered by your platform, ideally searchable by user ID. Plan this process before launch, so a request can be handled quickly.
For support, usually yes. A strong model reading stale or missing sources still gives poor answers.
Askocto answers the repeat questions across chat, email and voice and hands the hard ones to your team.
An AI agent answers from the text it extracts, not from how your PDF looks. Five things that break parsing, a prep checklist and a check to run after upload.
Read articleFast models are tempting for chat and voice, but speed is only worth it if answers stay right. A protocol to measure latency and quality together on your own conversations.
Read articleUsing a model API in support means planning for slow calls, errors and changes. A pre-flight checklist and a thin wrapper keep Kimi K2 or any provider swappable.
Read article