Does your AI agent really read attachments?
A client sends you a plan as a photo, a quote as a PDF, a measurement table in Excel. Can your AI agent really read these files and get something useful from them? This article tells you exactly what works, what doesn't, and how to make the most of it.
- An AI agent reads text PDFs, clear images and spreadsheets, but not videos or protected files.
- OCR allows text recognition in images and scans, with better results on clean documents.
- The agent extracts information and uses it according to the mission you have entrusted to it: quotes, sorting, customer response.
The question comes up almost every time an agent is created: does it see what's in my files? The short answer is yes, but not all of them, and not in the same way. An AI agent can extract text from a PDF, recognize what a photo shows, read the cells of a spreadsheet. But it has its limits, and knowing them avoids a lot of disappointment.
IWhat can an AI agent read in an attachment?
An AI agent does not look at a file the way you do. It first transforms it into plain text, then analyzes that text. For a PDF containing real text (not a scanned image), it's direct: the agent retrieves each word, each number, each paragraph. For an image or scanned PDF, it uses a technology called OCR, which recognizes characters in the image. For an Excel file or table, it reads the cells line by line, column by column.
Optical character recognition: transforming an image of text into usable text.
OCR (Optical Character Recognition) allows an AI agent to read text present in a photo or scanned document. The agent analyzes the shapes of letters, recognizes them, and converts them into text that it can then understand and use.
IIText PDF, scanned PDF: what's the difference for the agent?
A text PDF is a document where the text has been typed on a computer. You can select words with your mouse. The agent reads it effortlessly, as if reading an email. A scanned PDF is a photo of a paper document. The text is there visually, but for the computer, it's an image. The agent must then use OCR to recognize the letters. It works well when the scan is sharp, less well when the photo is blurry or taken at an angle.
IIIImages and photos: what the agent really sees
When you send a photo to an AI agent, it can describe what it shows: a garden, a facade, a piece of furniture, a plan. It can also read the visible text in the image thanks to OCR. But it does not measure distances, does not recognize materials with certainty, and does not guess what is outside the frame. If a landscaper sends a photo of a plot of land, the agent can say it sees a lawn, a hedge, a terrace. It cannot say that the lawn is twelve meters long, unless a scale or indication is visible.
IVExcel tables: the agent reads the cells, not the hidden formulas
An Excel file or a Google Sheets spreadsheet is a grid of cells. The agent reads the content of each cell: text, numbers, dates. It can identify columns (name, quantity, price), perform additions, search for a specific line. On the other hand, it does not see the formulas that calculate the values, only the displayed result. And if your file contains multiple tabs, you need to specify which one to look at.
- 1File reception
The agent receives the attachment with the email or request. It identifies the file type: PDF, image, spreadsheet, other.
- 2Content extraction
For a text PDF or spreadsheet, it extracts the text directly. For an image or scanned PDF, it uses OCR to recognize the characters.
- 3Analysis and understanding
The agent reads the extracted text, identifies useful information (names, numbers, dates), and links it to the customer's request or the task assigned to it.
- 4Use in the response
The agent integrates this information into its response: it can cite a figure, summarize a document, or prepare a quote based on the extracted data.
VWhat the agent cannot read
Some files remain out of reach. Videos are not analyzed: the agent does not watch a video to extract information from it. Files that are too large (several tens of megabytes) can block or slow down processing. Rare formats or files protected by password are unreadable. And handwritten documents, especially if the handwriting is difficult, give random results.
VIConcrete example: a landscaper receives a garden plan
A customer sends an email with a photo of their garden and a hand-drawn plan, scanned as a PDF. The agent receives both files. In the photo, it recognizes a lawn, a hedge, a garden shed. On the scanned plan, it reads the dimensions written if they are legible: "8 m", "terrace 3x4". It can then prepare a draft estimate by listing the surfaces to be treated. But if the plan is blurry or the handwritten numbers are illegible, the agent will ask the customer for clarification before proceeding.
VIIHow the agent uses this information
Once the content is extracted, the agent does not simply copy it. It links it to the task you assigned to it. If you asked it to prepare quotes, it looks for dimensions, quantities, references. If you asked it to classify invoices, it identifies the supplier, date, amount. The agent makes the connection between what it reads and what it must produce.
Check what applies to you: the list remembers your answers on this device.
VIIIFrequently asked questions
?Questions we're asked
Can my agent read a Word file?
Yes, a Word file (.docx) is read like a text PDF. The agent extracts the text, headings, lists. Images inserted in the document are also analyzed if they contain text or useful visual information.
What happens if the file is too heavy?
A file of several tens of megabytes can slow down or block processing. The agent will notify you. In this case, try to compress the file or send only the useful pages.
Can the agent read a ZIP file containing multiple documents?
No, the agent does not decompress archives. Send the files one by one, or ask your customer to do so. This also allows the agent to process each document separately.
How do I know if the agent understood my attachment correctly?
During the dry run, the agent shows you what it extracted and how it plans to use it. You can verify that it read the important information correctly before validating.
Does the agent keep a copy of my files?
Files are processed to extract useful content. The retention policy depends on your configuration. For more information, consult the article on data security.
Create an agent that reads your attachments and extracts useful information from them.
Create My AgentRead more next
Automatic quote by AI: answering a request in ten minutes
A quote request that waits three days gives the customer time to sign elsewhere. This tutorial explains how an AI agent…
Read the lessonWhat documents to give an AI agent, and which to keep
An AI agent works from what you give it. This guide tells you which documents really help it, in what form…
Read the lessonWhere does your data go when an AI agent works for you?
Entrusting a task to an AI agent means entrusting it with information. This guide follows the path of your data, piece by piece, and says…
Read the lesson