Skip to main content
Use one of two nodes. Add an MCP Client Tool pointed at https://api.eu.doconda.com/mcp to an AI Agent node, or call POST https://api.eu.doconda.com/v1/documents from an HTTP Request node. Either way the workflow gets the finished Word, PowerPoint, Excel or PDF file with its download links.

Which node to use

With an AI Agent

  1. Add an AI Agent node and, on its Tool input, an MCP Client Tool node.
  2. Set Endpoint to https://api.eu.doconda.com/mcp and Server Transport to HTTP Streamable.
  3. Set Authentication to Bearer Auth, with a new credential holding your API key (without the word “Bearer”).
  4. Set Tools to Include to All, or select only the ones you need, such as create_document.
Then ask the agent things like “When an order comes in, generate its invoice as a PDF”. Each tool call returns the document’s id, status and links.

With an HTTP Request

  1. Add an HTTP Request node: Method POST, URL https://api.eu.doconda.com/v1/documents.
  2. Set Authentication to Bearer Auth with your API key.
  3. Send a JSON Body, using n8n expressions for the workflow data:
With content.markdown your text is used as is and Doconda only lays it out. To have the AI write it, send "prompt": "…" instead of content. Change format to pdf, pptx or xlsx for another file. The node waits up to 120 s and returns the document:
  • outputs: the file, its PDF and page previews (preview). Each url expires after 5 minutes; get fresh ones with GET /v1/documents/{id}/outputs. To attach the file to an email, download that url in the next node.
  • status: ready, or failed with error.code. A failed document isn’t charged.
  • After 120 s the call answers 202 with the document still queued or running. Fetch it later with GET /v1/documents/{id}, or send "background": true and receive a webhook when it finishes.
Set "quality": "fast" (€0.05 from Markdown) so most documents finish in about a minute, inside the 120 s window.

FAQ

Yes. With the agent, it uses edit_document or convert_file; the remote MCP server takes files by public URL or base64. With HTTP, edit with "operation": "edit" and file on POST /v1/documents, or convert with POST /v1/convert. See Edit and Convert files.
The request fails with 402 insufficient_balance before anything is made. With quality: "auto", the balance must cover the highest level Doconda may pick; set max_quality to cap it.
In the European Union (Ireland), and the AI that processes them also runs in the EU.
For the full node setup, see n8n.