Skip to main content
Connect your LangChain agent to Doconda so it can convert, create and edit Word, PowerPoint, Excel and PDF files. The LangChain MCP adapters load the tools from the MCP server, remote or local.

Capabilities

  • Create a Word, PowerPoint, Excel or PDF file, or an artifact, from a request or from Markdown the agent wrote.
  • Edit a file: only what is asked changes, and get_report lists every change.
  • Convert a file to another format with no AI, for example any file to Markdown so the agent can read it.
  • Read what people saved in an artifact, such as poll votes.

Setup

This integration uses a Doconda API key in DOCONDA_API_KEY (from API keys), sent to the remote server as Authorization: Bearer. The model provider reads its own key, for example ANTHROPIC_API_KEY.

Python

The last message is the agent’s answer, with the document’s download links.

TypeScript

To use the Python SDK tools without MCP, wrap them in StructuredTool as in LangGraph.

Tools

The agent gets the eight tools of the MCP server; see the tools for what each one does. A failed call returns { "error": "<code>", "message": "…" }, so the agent can correct itself.

Troubleshooting

  • 401 from the server — DOCONDA_API_KEY is missing or invalid, so the Authorization header is empty or wrong.
  • The call times out before the document is ready — create_document and edit_document wait up to about 4 minutes, then return the document’s id and status for get_document to check later. Set the client’s per-call timeout to 300 s.
  • The download link stopped working — File links expire after 5 minutes; the agent calls get_document for fresh ones.