operation: "edit". Doconda changes only what you ask and leaves the rest identical; new content copies the
document’s formatting, so an added clause follows the numbering and look of the existing ones.
Steps
- Store your API key in
DOCONDA_API_KEYand install the SDK (pip install docondaornpm install @doconda/sdk). - Upload the Word file with
files.upload(or use thedoc_…id of a document Doconda already made). - Ask for the changes, check the report and download the result.
What you get back
- The same Word file, with only the requested changes, and its PDF.
- A report: in
edits, each change with the text before and after. Whatever couldn’t be done shows up asrejected, with the reason. - The result is reviewed as in Review (tables that overflow, numbering gaps…).
status:ready,ready_with_warnings,needs_revieworfailed. If the request can’t be turned into changes,failedwithedit_not_understood, not charged.
Limits
- 50 pages maximum.
- Tracked changes and comments need
quality: "standard"or"best". .docis accepted: the result comes out as.docx.
FAQ
Why not ask the model to rewrite the document?
Why not ask the model to rewrite the document?
Rewriting it whole tends to lose styles, numbering and tables. With
edit the rest of the document stays identical
and new content follows its formatting.Does it work with PowerPoint, Excel and PDF?
Does it work with PowerPoint, Excel and PDF?
Yes, with the same call. In a PDF, if you ask for more than changing text, it comes out as Word (
pdf.converted).What if someone fixes the Word file by hand afterwards?
What if someone fixes the Word file by hand afterwards?
Save it as a new version with
POST /documents/{id}/versions: it uses no AI and isn’t charged. See
Edit.