Skip to content

About

Make your AI agent deliver Word, PowerPoint, Excel and PDF files: examples for Amazon Bedrock, Vertex AI, Azure OpenAI, OpenAI, Claude, LangGraph, Strands, Vercel AI SDK, Mastra and MCP.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

Repository files navigation

Doconda examples

CI License: MIT

Make your AI agent or chatbot deliver Word (DOCX), PowerPoint (PPTX), Excel (XLSX) and PDF files: editable, with real styles, reviewed before delivery. No python-docx, python-pptx, openpyxl or templates to maintain.

Doconda is a document API for AI agents. These examples show it on the most common stacks.

Get started

  1. Get an API key at doconda.com (new accounts get free credit) and export it:
    export DOCONDA_API_KEY=ak_eu_…
  2. Clone the repo:
    git clone https://github.com/B-C-Software/doconda-examples.git
    cd doconda-examples
  3. Run an example:
    uv run python/direct_create.py                   # Python: uv installs each script's dependencies
    cd typescript && npm install && npm run ai-sdk   # TypeScript agents
    Each file's header says which other keys it needs, for example ANTHROPIC_API_KEY.

Examples

Stack Example What it does
No agent python/direct_create.py Word from a prompt, Word from Markdown, an Excel budget, review an existing file
No agent typescript/report-from-json/ JSON findings to a branded, editable Word report and PDF, with status and style checks
Amazon Bedrock python/bedrock_excel_budget.py Converse API agent that delivers an Excel budget
AWS Strands python/strands_bedrock.py Strands agent on Bedrock that delivers a PowerPoint
Google Vertex AI python/vertex_powerpoint.py Gemini agent that delivers a PowerPoint
Azure OpenAI python/azure_openai_word_report.py Azure OpenAI agent that delivers a Word report
OpenAI python/openai_word_memo.py Chat Completions agent that delivers a Word memo
OpenAI Agents SDK python/openai_agents_sdk.py Agents SDK with Doconda as function tools
Claude python/claude_word_memo.py Anthropic API agent that delivers a Word memo
LangGraph python/langgraph_agent.py LangGraph agent with Doconda's tools
Vercel AI SDK typescript/ai-sdk.ts AI SDK agent (any model) with Doconda's tools
Mastra typescript/mastra.ts Mastra agent with Doconda's tools
Remote MCP python/openai_remote_mcp.py OpenAI Responses API with Doconda's remote MCP server, no SDK
MCP clients mcp/ Add Doconda as an MCP server to Claude Code, Claude Desktop, Cursor and Codex

Every agent example except the remote MCP one uses Doconda().tools(): ready-made tools (name, description, JSON Schema, run) to create, review and edit documents. The model decides when to call them and returns the links to the files. openai_remote_mcp.py points the model at Doconda's MCP server instead.

Requirements

Examples Needs
python/ Python 3.10+ and uv. Each script declares its dependencies inline (PEP 723), and its header also shows the pip install line if you prefer pip
typescript/*.ts Node.js 22.13+ (npm install in typescript/)
typescript/report-from-json/ Node.js 20.12+, its own package.json and README

Step-by-step tutorials

Docs

Contributing

Something doesn't work or is out of date? Open an issue or a pull request. CI type-checks the TypeScript, lints and formats the Python (ruff) and the TypeScript (Prettier), and checks that every Python script's dependencies resolve. It never calls the Doconda API.

License

MIT

About

Make your AI agent deliver Word, PowerPoint, Excel and PDF files: examples for Amazon Bedrock, Vertex AI, Azure OpenAI, OpenAI, Claude, LangGraph, Strands, Vercel AI SDK, Mastra and MCP.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages