Skip to main content
Turn each tool from doconda.tools() into a LangChain StructuredTool (its JSON Schema works as args_schema) and add them to a ToolNode in your graph. The agent calls create_document, and its last message carries the links to the Word, PowerPoint, Excel or PDF file.

Steps

  1. Put your Doconda API key (dashboard → API keys) in DOCONDA_API_KEY and your model provider’s key (here, OPENAI_API_KEY).
  2. Install the dependencies: pip install langgraph "langchain[openai]" doconda.
  3. Build the graph with the tools:
If you don’t need your own graph, create_agent("openai:gpt-5", tools) from langchain.agents builds LangGraph’s prebuilt agent and returns a compiled graph all the same, with checkpointer, streaming and interrupts.

What you get back

The tools node adds a ToolMessage with the tool’s summary to the state:
  • Links expire after 5 minutes. Keep the id in the graph state if a later step has to edit the document (edit_document) or get fresh links (get_document).
  • status: ready or failed. Failed documents are not charged.

Which formats it creates

Without format, Doconda works it out from the request.

FAQ

Yes. Load the tools with langchain-mcp-adapters from https://api.eu.doconda.com/mcp, as in How do I make a LangChain agent return an Excel file?.
Yes. It’s a regular compiled graph: add an interrupt after the tools node, show the reviewer the links from get_document, and continue or ask for changes with edit_document.
A document from a sentence costs €0.15 at fast, €0.50 at standard and €1.50 at best. See pricing.