Write, share, and carry your context everywhere. Create your free account today.

03 n8n Node

Raw

n8n Node

The MDflow community node connects your workspace to n8n, so workflows can create, read, organize and share documents — and react when new ones appear.

Requires MDflow Pro, because the node authenticates with a Personal Access Token.

Installing

In n8n: Settings → Community Nodes → Install, then enter the package name:

n8n-nodes-mdflow

See n8n's community nodes installation guide if you need the full walkthrough.

Setting up the credential

The credential is called MDflow API, and it has exactly one field:

Press Test and n8n verifies the token by listing your workspaces. If that succeeds, you are connected.

There is no OAuth option and no base URL field — the node always talks to https://mdflow.cz. Self-hosted or local MDflow instances are not supported.

Two nodes

  • MDflow — the action node. Performs operations.
  • MDflow Trigger — a polling trigger. Starts a workflow when something new appears. There is no webhook trigger.

Operations

The action node has four resources — Document, Folder, Share and Workspace — with 22 operations between them.

Document

OperationRequiredOptional
CreateFolder (dropdown), Title, Body
GetDocument ID
Get ManyFilter by Workspace (dropdown)
Update BodyDocument ID, Body
RenameDocument ID, Title
MoveDocument ID, Folder (dropdown)
DeleteDocument ID
Set SharingDocument ID, Make Public, Allow Comments

Update Body replaces the entire body. It does not append. To add to a document, Get it first, concatenate in your workflow, then Update Body with the result.

Folder

OperationRequiredOptional
CreateName, Workspace (dropdown)Description, Parent Folder ID
GetFolder ID
Get DocumentsFolder ID
Get Many
UpdateFolder IDName, Description, Parent Folder ID
DeleteFolder ID

Leaving Parent Folder ID empty on Create puts the folder at the workspace root. Folder → Get Many returns folders across every workspace — there is no filter. Delete also deletes the documents inside.

Folder Description is worth setting from a workflow: it is MDflow's primary retrieval signal for AI agents (see 02 Folders and Subfolders).

Workspace

OperationRequiredOptional
CreateNameDescription
Get Many
UpdateWorkspace IDName, Description
DeleteWorkspace ID

There is no single-workspace Get — use Get Many. Delete removes every folder and document inside.

Share

Per-document private email shares. Document ID is required for all four.

OperationRequiredOptional
AddDocument ID, EmailAllow Comments
Get ManyDocument ID
RemoveDocument ID, Share ID
Remove AllDocument ID

Dropdowns — an asymmetry to know about

Two fields load live from your account: Folder (listed by full path) and Workspace (listed by name), both alphabetical.

But these dropdowns appear only on fields named Folder Name or ID and Workspace Name or ID — which means Document Create, Document Move, the Document Get Many filter, Folder Create, and the trigger's event fields.

Every other ID field is free text. Document ID, Folder ID, Workspace ID, Parent Folder ID and Share ID all require a raw UUID.

In practice: you pick a folder from a list when creating a document, but must paste a UUID to get, rename or delete one. Chain a Get Many earlier in the workflow to obtain the IDs you need.

The trigger

Three events:

EventScope
New DocumentA folder — required, pick one
New FolderA workspace — optional; blank means all workspaces
New WorkspaceYour whole account

Behaviour worth understanding before you rely on it:

  • The first poll emits nothing. It records what already exists, so you are not flooded with your entire history. Events fire from the second poll onward.
  • Deduplication is by item ID, capped at the 10,000 most recent. Older IDs are dropped.
  • Fetch Test Event returns only the single most recent item, for field mapping.
  • New Folder filters after fetching — it retrieves all folders, then narrows to your chosen workspace.
  • Every poll re-fetches the full list, because MDflow's API has no "changed since" parameter. Keep the polling interval sensible on a large account.

Rate limits and pagination

Two rough edges to design around:

  • MDflow rate-limits to 60 requests per minute per token, returning 429 with a Retry-After header. The node does not retry or back off — add error handling in your workflow if you loop over many items.
  • There is no pagination. No Get Many operation has a Return All or Limit field; each returns whatever the API returns.

AI agent tools

The action node is marked usable as a tool by n8n's AI Agent nodes, so an agent inside n8n can call MDflow operations directly.

Example workflows

  • Capture — an inbound email or form submission becomes a document in a chosen folder.
  • Publish — on approval, Set Sharing to make a document public, and pass the link onward.
  • Distribute — when a New Document appears in a folder, Share → Add to email it to a reviewer.
  • Digest — on a schedule, Folder → Get Documents, summarize, and write the result back with Document → Create.