Read a document
Know what the PDF, Word, or text file that the customer sends says.
Open the document that arrived in the chat and extract its text so the agent can answer about what it says: a quote, a resume, an order list, a receipt in PDF.
Reads PDF with text, Word (.docx), and text files (.txt, .md, .csv, .json, .xml, .html), up to 10 MB; from a PDF, the first 30 pages. It doesn't use AI, so it doesn't spend credits: the agent understands it by reading it.
The text ends up in {{vars.documento.text}}, with the file name, format, and pages. The agent gets it better if you pass it first through «Describir mensaje», which tells it what document it is and that the text comes from the file, not the chat.
What you can do
- Answer about a quote or an order list that they send you in PDF.
- Read a resume in Word and reply to the candidate.
- Decide the path based on what the document says, with a condition on {{vars.documento.text}}.
- Choose how much text reaches the agent, from 500 to 30,000 characters.
An example
The competitor's quote
- A customer sends you the PDF from another store on WhatsApp: «can you beat it?».
- The flow sees it's a document and passes it through «Read document».
- The agent reads the products and the total, and replies with their price.
- If the PDF was a scan, the agent asks them for a photo, which can be read.
Recommendations
- Leave the text limit as it is unless your documents are long: everything that gets read travels in the agent's message and you pay for it each turn.
- If you receive many scans, ask in the agent's instructions that if it can't read a PDF, request a photo.
Watch out for this
- A scanned PDF is photos, not text: it comes out as «couldn't read». It also doesn't read old Word .doc, spreadsheets, or presentations.
- A photo sent as a document (JPG, PNG, WebP, or GIF) doesn't arrive here: it comes in as a photo and «Read image» reads it.
- It has a «couldn't read» output: connect it, or a document that can't be read leaves the customer without a reply.
