AI agents for document processing can do three jobs. They extract fields into another system, review a document against a checklist, and draft one from your sources. Start with one document type and a fixed list of fields, checks or sources. A person checks the output against the source, because agents make mistakes and documents can carry hidden instructions.

What can an AI agent do with documents?
Each of the three jobs takes different inputs and needs a different check from a person. Extraction pulls named fields out of documents. Review reads a document against your checklist. Drafting writes a first version from your templates and source files. If you want an agent to answer questions from documents instead, see our guide to the agent knowledge base.
| Job | What the agent does | What you give it | What a person checks |
|---|---|---|---|
| Extraction | Pulls named fields from each document into a sheet or system | The documents and a field list | Every field on the test sample, then every figure, date and name before it is used |
| Review | Reads a document against your checklist and lists what is missing or different | The document and the checklist | Every flagged item, and a sample of passes |
| Drafting | Writes a first draft from your templates and source files | A template, the sources and the goal | The whole draft, before it goes anywhere |
This table is our own summary, not a vendor benchmark.
Pick one row for your first job. Extraction suits a pile of similar documents. Review suits a document that must meet a standard. Drafting suits a document you write often from the same sources.
Is an AI agent the same as intelligent document processing?
No. Intelligent document processing (IDP) is a type of software for data entry from documents. An agent is one way to do some of that work. We read the AWS page on intelligent document processing in November 2026. IDP “automates the process of manual data entry from paper-based documents or document images to digital form, for integration with other digital business processes.” AWS says IDP can use “machine learning (ML) and various artificial intelligence (AI) technologies”.
That is data entry into business systems. An agent can do that too. It also works from a goal, decides the next step and uses tools. So, with the right tools connected, it can compare two documents, or write a summary and save it.
In our view, a dedicated tool fits better for a high volume of one fixed form type. An example is the same invoice layout every day. An agent fits better when the documents vary and the work changes from week to week. Even then, start with one type and add more once the sample passes.
How does AI document extraction work, and where does it go wrong?
AWS describes the IDP process as classifying the document, extracting the data and then validating it. It says IDP can “interpret, classify, and extract data from a variety of document types”. With an agent, you can set up AI document extraction the same way, in three steps you define.
First, ask the agent to name the document type, such as a contract, a quote or a report. Second, it pulls the fields you listed. Third, it checks the values if you ask it to, for example by flagging a missing date or a total that does not match. That check can be wrong too.

The Australian Signals Directorate’s Australian Cyber Security Centre (ACSC) published guidance on agentic AI on 1 May 2026, with other agencies. It says “while LLMs can have a surprising amount of knowledge in a wide range of areas, they quite often make mistakes.”
It adds that they may “incorrectly interpolate or ‘hallucinate’ plausible-sounding responses when their internal knowledge is insufficient.”
It also says grounded and tool-enabled agents “may still rely on their internal knowledge to inform responses.” In our view, for extraction that means a field can look right and be wrong. A missing value may be filled with a plausible guess, or a figure taken from the wrong line.
How do you prepare documents so AI reads them accurately?
Prepare the documents and the task before you run anything. In our view, the input and the field list are the two things you control most. Work through these steps.
- Use the current version of each document. Remove old drafts and duplicates from the folder.
- Check that each document has text you can select and copy. If some are scans or photos, check whether your tool can read them before you start.
- Start with one document type. Mixed types make the field list unclear.
- Write the field list. Name each field, say where it usually appears and say what to do when it is missing.
- Keep a small sample with known answers. Run the agent on it first and compare.
The sample is your test. If the agent gets the known answers wrong, fix the field list or the documents before you run the full set. Our guide to writing agent instructions covers how to word the goal.
What should a person still check?
On the test sample, check every field against the source. After that, check every figure, date and name before it is used, every flagged item from a review, every line of a draft, and a sample of the rest. The agent can miss a problem as well as invent one.
Documents also carry a second risk. We read OWASP’s prompt injection guidance in November 2026. It says “Indirect prompt injections occur when an LLM accepts input from external sources, such as websites or files.”
It adds that “prompt injections do not need to be human-visible/readable, as long as the content is parsed by the model.”
So any document someone else wrote, including a shared file inside your company, can carry text that tries to steer the agent. You may not see that text when you open the file. OWASP says “it is unclear if there are fool-proof methods of prevention for prompt injection”, so treat documents you did not write as untrusted input.
The ACSC guidance is written for government, industry and critical infrastructure teams. In our view, some of its recommendations also suit small teams. One is to “limit initial use to low-risk, well-defined tasks”. Another is “never granting it broad or unrestricted access, especially to sensitive data or critical systems”.
It also says to “apply the principle of least privilege, assigning only the minimum access required for each role.”
In practice, give the agent only the documents for this job, not your whole drive.
OWASP also says to “require human approval for high-risk actions”. In our view, approval is a process your team sets up. Decide who reads the output, and before what step, before the first run. Our guide to checking an AI agent’s work gives a routine for it.
How TobyBot fits
TobyBot is an agentic bot by Xinference. It has a documents template, and you can upload documents to its knowledge base, where bots search them with hybrid keyword plus semantic search. Native connectors include Google Drive and Microsoft OneDrive. You set a goal, and TobyBot plans the steps, shown as one card for each, then runs them with your tools. Every tool call and result is visible while it runs, and you can pause it. A task can be saved as a bot and run again or scheduled. Our guide to a first agent from a template shows how templates work. See the TobyBot home page or talk to us.
Questions
What is the best AI for document processing?
It depends on your volume and how much your documents vary. In our view, one fixed form at high volume points to a dedicated document processing tool, and varied work points to an agent. Whatever you choose, test it on your own documents with a sample that has known answers.
Is intelligent document processing AI?
It can be. AWS says document processing can use machine learning and various AI technologies to automate document management.
Can AI review legal documents?
It can flag items against your checklist, such as a missing clause or a wrong date. A qualified person decides what each flag means and also reads what it passed, because it can miss a problem. ACSC says organisations “should only use agentic AI for low-risk and non-sensitive tasks”. Many legal documents are sensitive, so start with low-risk ones or keep this job with people. Treat the output as a first pass, never as legal advice.
Can an AI agent draft documents?
It can, from a template and your source files. Treat the result as a first draft. A person should read the whole draft before it goes anywhere.
Try TobyBot. See what teams set it to do, or book a demo and bring a goal.


