Create document
create_documentTurn a request or Markdown into a finished Word, PDF, PowerPoint, Excel file or web artifact, and get download links once it is ready.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | 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 none, only local. | |
| name | No | Optional: a name to find it later, e.g. 'Contrato piso Malasaña'. It also names the files. | |
| style | No | Optional: the look in plain words, e.g. 'blue centred headings, Lora font, page numbers, table of contents'. | |
| format | No | 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. | |
| prompt | No | 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 | No | 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 design or to edit with comments or tracked changes. auto (default): Doconda picks the level the request needs. The price of the highest level it may use is held from the balance while the document is made and what is not used is returned: with a low balance, pick fast or set max_quality. | |
| markdown | No | Content already written, in Markdown (instead of prompt). For an artifact, the content its page shows. | |
| retention | No | 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. | |
| max_quality | No | Only with quality auto: the highest level Doconda may choose. It caps the price and the amount held, e.g. standard. | |
| source_file_ids | No | 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 markdown, refer to them as , the first picture). |