Skip to main content
An LLM returns text, not files. To get a Word, PowerPoint or Excel file, ask the model for the content in Markdown and pass it to Doconda with the format you want (docx, pptx, xlsx or pdf). Or give your agent Doconda’s tools with doconda.tools() and let it create the file itself.

The problem in practice

  • The model answers with Markdown or a code block, not a .docx you can download.
  • If you ask it to write the code that builds the file, you have to run it and debug whatever fails.
  • A file that is generated without errors can still open badly: overflowing tables, text that doesn’t fit the slide.
  • Each format (Word, PowerPoint, Excel) needs its own library and its own code.

The solution with Doconda

With the text your LLM already returned:
Or as a tool for your agent, for any model with function calling. Each one has name, description, input_schema (JSON Schema) and run(args):
How to connect them on each platform: Doconda in your agent.

What you get back

  • The file you asked for; Word, PowerPoint and Excel also come with their PDF.
  • status: ready, ready_with_warnings, needs_review or failed (not charged).
  • A report (documents.report(id)) with anything worth checking before you send it.
  • With tools, your agent gets a short summary (status and links) it can pass on to the user.

FAQ

The model’s answer is text. Ask it for the content in Markdown and turn it into a .docx with documents.create(format="docx", content={"markdown": ...}), or let the agent call the create_document tool.
Use format="pptx" with your LLM’s Markdown in content. With no content of your own, describe the presentation in prompt and Doconda writes it. It comes out in 16:9 and with its PDF.
Yes. There is an MCP server, SDK tools for Claude, OpenAI, Gemini, Bedrock, Vertex AI and the AI SDK, and the REST API. The full list is in Doconda in your agent.

Keep reading