Skip to main content
With Doconda’s Excel agent API, your AI agent creates and edits Excel files: ask for format: "xlsx" with a sentence and you get an .xlsx with real formulas (not pasted numbers), assumptions in their own cells and no calculation errors, plus its PDF. To change an Excel file that already exists, operation: "edit" changes only what you ask.

Steps

  1. Put your API key (dashboard → API keys) in DOCONDA_API_KEY and install the SDK (pip install doconda or npm install @doconda/sdk).
  2. Create the Excel file from a sentence:
  1. Edit an Excel file you already have (uploaded with files.upload, or one Doconda made, by its doc_…):
  1. Or give the tools to your agent, for example with the remote MCP server:
Without MCP, doconda.tools() gives the same tools for any model with function calling.

What you get back

  • An .xlsx with formulas: change an assumption and the sheet recalculates. Also its PDF.
  • status: ready, ready_with_warnings, needs_review or failed (not charged).
  • A report (documents.report(id)): figures that don’t come from your request or your sources are removed or flagged, and for an edit, each change with its before and after (edits).

FAQ

Yes. In standard and best changes use real formulas and the rest of the sheet stays identical. In fast, and always with .xls, text and basic style are changed.
Yes. Upload your files and pass their ids in sources (up to 5 documents: Word, PowerPoint, Excel, PDF, TXT or Markdown).
Review it with operation="review": it detects formulas with errors (#REF!, #DIV/0!…), broken references and numbers stored as text, among others. See Review.
Creating from a sentence: €0.15 in fast, €0.50 in standard, €1.50 in best. Editing: €0.10, €0.30 or €1.00. See pricing.

Keep reading