Skip to main content
To get an Excel file with real formulas from an LLM, describe the sheet in a sentence and create it with Doconda using format="xlsx". You get an .xlsx whose figures are formulas, not pasted numbers, with each assumption in its own cell. Every formula is recalculated before delivery and the file arrives with no formula errors, plus its PDF.

Why LLM spreadsheets break

  • The model tends to write the computed result, so the sheet looks right but doesn’t update when an input changes.
  • Its formulas can point at the wrong cells and end up as #REF! or #DIV/0!.
  • A file built with a library such as openpyxl has no calculated values until someone opens it, so errors go unnoticed.
  • Newer functions like XLOOKUP or FILTER don’t evaluate in every spreadsheet program.

How Doconda builds the sheet

  • Formulas, not results: totals and projections are formulas, so the sheet recalculates when you change an input.
  • Assumptions in their own cells: each input (starting customers, growth, price) sits in a labelled cell that the formulas reference.
  • Recalculated before delivery: every formula is calculated and the file isn’t delivered while any formula errors.
  • Portable functions: lookups use INDEX/MATCH instead of XLOOKUP, XMATCH, SORT, FILTER, UNIQUE or SEQUENCE.
  • Checked figures: numbers that don’t come from your request or your sources are corrected.

Create the file

create() waits until the document finishes, so the script prints ready and saves forecast.xlsx. doconda.documents.download(id, "pdf") gives its PDF. If your data is in a file, upload it and pass its ID in sources: doconda.files.upload("sales.xlsx") in Python, doconda.files.upload(await readFile("sales.xlsx"), "sales.xlsx") in TypeScript. Up to 5 documents can go in sources, together with prompt. A document that can’t be delivered ends in failed and isn’t charged. For quality levels and prices, see create.

FAQ

On its own, the model returns text or computed values. Pass the request to documents.create(format="xlsx", prompt=...): Doconda writes the formulas and recalculates them before delivering the file.
Doconda recalculates every formula before delivery and doesn’t deliver the file while any of them errors.
Yes. Upload it with files.upload and call documents.create(operation="edit", file=..., prompt=...) with the change in a sentence. Changes use real formulas and the rest of the file stays the same. See edit.