+

Generate Word, Excel, PowerPoint and PDF
with Hugging Face

Code

Python or TypeScript

Open models, real documents.

Connect Doconda from a smolagents agent and get finished, editable, reviewed Word, Excel, PowerPoint and PDF files.

  1. 01Install the SDKpip install doconda or npm install @doconda/sdk, and your API key.
  2. 02Give your agent the toolsDoconda's tools, in Hugging Face's format.
  3. 03Your agent delivers the fileYour agent gets the link to the reviewed file.
import os
from smolagents import CodeAgent, InferenceClientModel, MCPClient

doconda = {
    "url": "https://api.eu.doconda.com/mcp",
    "transport": "streamable-http",
    "headers": {"Authorization": f"Bearer {os.environ['DOCONDA_API_KEY']}"},
}

with MCPClient(doconda, structured_output=True) as tools:
    agent = CodeAgent(tools=tools, model=InferenceClientModel())
    print(agent.run("Crea una presentación sobre el cambio climático para un colegio"))

FAQ

Common questions

01 / 03

How do I use Doconda with smolagents?

Add Doconda's tools to your smolagents agent with the MCP adapter; the agent uses them when it needs a document.

The document API for AI agents, ready for production.