+

Generate Word, Excel, PowerPoint and PDF
with Strands Agents

Code

Python or TypeScript

Strands on AWS, documents ready.

Connect Doconda from a Strands Agents agent (AWS) 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 Strands Agents's format.
  3. 03Your agent delivers the fileYour agent gets the link to the reviewed file.
import json
import os

from doconda import Doconda
from strands import Agent
from strands.models import BedrockModel
from strands.tools import PythonAgentTool


def as_strands_tool(t):
    def run(tool_use, **_):
        out = t.run(tool_use["input"])
        return {"toolUseId": tool_use["toolUseId"], "status": "success", "content": [{"text": json.dumps(out)}]}

    spec = {"name": t.name, "description": t.description, "inputSchema": {"json": t.input_schema}}
    return PythonAgentTool(t.name, spec, run)


agent = Agent(
    model=BedrockModel(model_id=os.environ["BEDROCK_MODEL_ID"]),
    tools=[as_strands_tool(t) for t in Doconda().tools()],
)

agent("Crea una presentación de 5 diapositivas sobre nuestros resultados del trimestre")

FAQ

Common questions

01 / 03

How do I use Doconda with Strands Agents?

Connect Doconda's MCP server with Strands' MCPClient and pass its tools to the agent.

The document API for AI agents, ready for production.