Why it matters when generating documents with AI
- A model doesn’t reliably return binary files; it produces text or JSON that another step turns into a file.
- Next to the file, a structured report (status, warnings with code and location) lets the application decide without opening the document.
- For an agent, returning the whole file wastes context; a link and a summary are enough.
- Extracting a file’s content as text (for example, Markdown) is the reverse path.
With Doconda
Each document returns its files inoutputs (the Word file and its PDF, for example) and a JSON report. Each
review warning has its code, severity and location (pages, or sheet and cells in Excel).
Download links expire after 5 minutes; get new ones with GET /documents/{id}/outputs (Quickstart).