@doconda/editor). The agent writes the Word, PowerPoint or Excel file; the user touches it up
in their browser without leaving your product; and you save it as a new version of the document.
Steps
- Create an API key in the dashboard (API keys) and store it in
DOCONDA_API_KEY. Install the SDK on your server:npm install @doconda/sdk. - Get the editor plugin (Billing → Editor plugin, with a 7-day free trial) and install it with the command from the dashboard (it needs React 19 or later):
- On your server, create the document:
- Serve it from a route of yours. The links in
doc.outputsdon’t work assrc: the browser can’t read them from your site and they expire after 5 minutes. Download the file on the server:
- In the browser, open it in the editor. The link has no extension, so pass
format:
- When the user is done, save it in Doconda as a new version (with its review, PDF and change report):
Why this way
- The agent doesn’t have to get it perfect the first time: the user fixes what’s missing in a full Word editor.
- Whatever the editor does not touch is saved as is: styles, charts or notes are not lost.
- A hand-edited version uses no AI and isn’t charged. See Edit.
FAQ
Does it work with PowerPoint and Excel?
Does it work with PowerPoint and Excel?
Yes. Create the document with
format: "pptx" or "xlsx", download it in that format and pass the same format
to the editor.Can I pass the file without a route?
Can I pass the file without a route?
Yes: if you already have the bytes in the browser (for example, from a response from your API), pass them with
file.What if I only want them to review it, not change it?
What if I only want them to review it, not change it?
Add
readOnly. See DOCX viewer for React.Is it paid separately?
Is it paid separately?
Yes: the editor plugin is purchased separately from the API, per organization, with unlimited documents and users. See
licence and domains.