@ in the personality prompt when the agent should work with PDFs.
Prerequisites
- An agent you can edit
- For extraction or page conversion: a PDF from a chat upload, a Knowledge Base file, a public HTTPS URL, or a base64 PDF data URL
- For image-to-PDF: an image as a base64 data URL or HTTPS URL (JPEG, PNG, GIF, or WebP)
Available tools
How PDF inputs are resolved
For Extract Text and Convert to Image, the agent can pass:- A chat attachment filename from the current conversation
- A Knowledge Base file name or path in the current project
- An
https://URL to a PDF - A base64 data URL (
data:application/pdf;base64,…)
Use cases
- Pull clauses or tables of contents out of uploaded policy PDFs during a conversation
- Convert a cover page or diagram page to an image for review or further analysis
- Generate a short PDF summary or receipt from text the agent produced
- Wrap a generated chart or screenshot into a one-page PDF for download
Tips
- Prefer Extract Text for searchable/text PDFs. Scanned image-only PDFs may return little or no text — use Knowledge Base ingest or OCR elsewhere for those.
- Convert to Image handles one page per call. Repeat with the next page number for multi-page output.
- Generated PDFs and images are returned as data for the conversation — they are not automatically saved as Knowledge Base documents. Use Document Manager or File Helpers when you need a stored file workflow.
- For general file read/save (DOCX, XLSX, CSV, re-encoding), use File Helpers instead.