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.
- 01Install the SDKpip install doconda or npm install @doconda/sdk, and your API key.
- 02Give your agent the toolsDoconda's tools, in Strands Agents's format.
- 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")
