langgraph and doconda, turn each tool from doconda.tools() into a StructuredTool (its JSON Schema works
as args_schema) and pass them to the agent or a ToolNode. The agent calls create_document and its last message
carries the links to the Word, PowerPoint, Excel or PDF file.
Steps
- Put your Doconda API key (dashboard → API keys) in
DOCONDA_API_KEYand your model provider’s key (here,OPENAI_API_KEY). - Install the dependencies:
pip install langgraph "langchain[openai]" doconda. - Build the graph with the tools:
create_agent("openai:gpt-5", tools) from langchain.agents is LangGraph’s prebuilt
ReAct agent and returns a compiled graph just the same: with checkpointer, streaming and interrupts.
What you get back
Thetools node adds a ToolMessage with the tool’s summary to the state:
- Keep the
idin the graph state if a later step has to edit the document (edit_document) or get fresh links (get_document): links expire after 5 minutes. status:ready,ready_with_warnings,needs_revieworfailed(not charged).
FAQ
Can I use MCP instead of the Python SDK?
Can I use MCP instead of the Python SDK?
Yes: the tools come from
langchain-mcp-adapters against https://api.eu.doconda.com/mcp, as in
LangChain.Can I add a human approval before the document is sent?
Can I add a human approval before the document is sent?
Yes. It’s a regular compiled graph: add an interrupt after the
tools node and check the status and the report
(get_report) before continuing.Which formats does it create?
Which formats does it create?
Word, PDF, PowerPoint, Excel and artifacts (a web page with its own data). Word, PowerPoint and Excel files come with
their PDF.
How much does it cost?
How much does it cost?
You pay per delivered document. See pricing.
Keep reading
- LangGraph: the full guide.
- Quickstart.