Doconda
v0.7.0Convert, create and edit Word, PowerPoint, Excel and PDF documents from any AI agent.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_document Create document
Create a finished document: Word, PDF, PowerPoint, Excel or an artifact (a web page with its own shared database, e.g. a poll or a team checklist). Choose only the format: Doconda works out what kind of document it is (contract, letter, report…) from the request. Give `prompt` to have it written, or `markdown` with the content already written. Waits until it is ready and returns download links; after about 4 minutes it returns its id and status instead: call get_document later.
| Parameter | Type | Description |
|---|---|---|
data | string | Artifacts only. shared (default): everyone with the link sees the same data (polls, team lists). local: each visitor keeps their own in their browser (calculators, personal checklists). With retention… |
format | string | docx → Word (+ PDF); pdf → only the PDF; pptx → PowerPoint (+ PDF); xlsx → Excel (+ PDF); artifact → web page. If the user didn't say, leave it out and Doconda decides from the prompt. |
markdown | string | Content already written, in Markdown (instead of prompt). For an artifact, the content its page shows. |
max_quality | string | Only with quality auto: the highest level Doconda may choose. It caps the price and the amount held, e.g. standard. |
name | string | Optional: a name to find it later, e.g. 'Contrato piso Malasaña'. It also names the files. |
prompt | string | What to write, in the user's words (topic, audience, length, tone). Formatting wishes too, e.g. 'blue centred headings, with a cover page'. |
quality | string | Optional. fast: the cheapest and quickest (about a minute), any style, but it can't copy a file's design. standard: more care, takes minutes. best: the highest quality and price, e.g. to copy a file's… |
retention | string | Optional: how long Doconda keeps it once finished (none = 15 minutes). Without it, the project's retention (30 days unless changed). The user should save the file before then. |
source_file_ids | array | Uploaded files (upload_file) or documents already made (their id, from list_documents): documents to base the text on (up to 5, with prompt) and pictures to put in the document (up to 10; with markdow… |
style | string | Optional: the look in plain words, e.g. 'blue centred headings, Lora font, page numbers, table of contents'. |
upload_file Upload file
Upload a file (Word, PDF, PowerPoint, Excel — also the old .doc, .ppt and .xls —, .odt, CSV, TXT, Markdown, HTML, or a PNG, JPEG, GIF or WebP picture; up to 20 MB) to convert or edit it, or to use it as a source. Returns its file_id. Give `path` for a file on this computer.
| Parameter | Type | Description |
|---|---|---|
content_base64 | string | The file's bytes in base64 (for small files). |
filename | string | Its name with extension, e.g. contract.docx. Needed with content_base64. |
path | string | Absolute path of the file on this computer. |
url | string | A public URL: Doconda downloads the file from it. |
convert_file Convert file
Convert an uploaded file to another format, with no AI. Word, Markdown, text, HTML and .odt → docx, pdf, md, txt, html, odt, rtf; Excel and CSV → xlsx, csv, pdf, md, txt; PowerPoint → pptx, pdf, md, txt; PDF → docx, md, txt; PNG and JPEG → pdf, md. Scanned PDFs and pictures are read with OCR. md, txt, html and csv come back as `text` (use md to read any file); the rest as a download link valid 5 minutes. The first 1000 conversions each month are free, then 0.01 € each.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | From upload_file, or the id of a document Doconda made (list_documents). |
to * | string | The format you want. |
edit_document Edit document
Change an uploaded Word, PowerPoint, Excel or PDF file as asked (e.g. 'blue headings and add a confidentiality clause'). Only what is asked changes; the rest stays identical. Returns the new file (after about 4 minutes, its id and status instead: call get_document later); get_report lists every change, with the text before and after.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | From upload_file, or the id of a document Doconda made (list_documents). |
instructions * | string | What to change, in the user's words. |
max_quality | string | Only with quality auto: the highest level Doconda may choose. It caps the price and the amount held, e.g. standard. |
quality | string | Optional. fast: the cheapest and quickest (about a minute), any style, but it can't copy a file's design. standard: more care, takes minutes. best: the highest quality and price, e.g. to copy a file's… |
list_documents List documents
The latest documents made in this project (newest first), with their id and name. Use an id as file_id to convert or edit one, or in source_file_ids to create from it.
| Parameter | Type | Description |
|---|---|---|
limit | number | How many, 1–100 (default 20). |
get_document Get document
A document's status and fresh download links (they expire after 5 minutes). Also to check on a document create_document or edit_document returned before it finished.
| Parameter | Type | Description |
|---|---|---|
document_id * | string | doc_… |
get_report Get report
What an edit changed (from edit_document): changes lists each passage added, changed or removed, with the text before and after (empty for a created document). For the status and download links use get_document. Until the document finishes it returns report_not_ready; once its retention ends, content_deleted.
| Parameter | Type | Description |
|---|---|---|
document_id * | string | doc_… |
read_artifact_data Read artifact data
What people have saved in an artifact's page (e.g. poll votes): its collections, or one collection's records, newest first.
| Parameter | Type | Description |
|---|---|---|
document_id * | string | The artifact's doc_… id. |
collection | string | Optional: one collection's records instead of the list of collections. |