Skip to main content
Install doconda (or @doconda/sdk) and pass doconda.tools() as the toolConfig of the Bedrock Converse API. When the model asks for the create_document tool, you run it with run() and get back the Word file (.docx) and its PDF with their download links.

Steps

  1. Enable a model in your Bedrock account and put its id in BEDROCK_MODEL_ID. AWS credentials come from your environment (AWS_REGION, AWS_ACCESS_KEY_ID…).
  2. Create a Doconda API key in the dashboard, under API keys, and put it in DOCONDA_API_KEY.
  3. Install the dependencies and run the Converse loop: while stopReason is tool_use, run the tool and hand the result back to the model.
The same loop works for your own agent built on Bedrock: the agent decides when to create the document and you only run the tool.

What you get back

The tool returns a short summary to the model, which passes it on to the user:
  • status: ready, ready_with_warnings, needs_review (something in the report is worth checking) or failed (not charged).
  • links: the editable Word file and its PDF. They expire after 5 minutes; the agent gets fresh ones with get_document.

FAQ

With any model enabled in your account that supports tools in the Converse API. The tools are standard JSON Schema.
Yes. create_document also creates PDF, PowerPoint and Excel files; the model picks format from what the user asks.
You pay per delivered document; failed ones are not charged. What the agent does costs the same as the API. See pricing.
In the European Union (Ireland), and the AI that processes them also runs in the EU.

Keep reading