content/guides/12.integrations/1.n8n/0.index.md
Connect your Directus instance with n8n to automate workflows, sync data between systems, and build powerful integrations.
::callout{icon="heroicons-outline:rocket-launch"} Quick Start
Important: Always install via the node palette search (+ button), not Settings → Community Nodes ::
The Directus community node provides two components:
::callout{icon="material-symbols:info-outline"} Self-Hosted n8n Users
If you can't find the Directus node when searching, ensure community nodes are enabled:
N8N_COMMUNITY_PACKAGES_ENABLED=true in your n8n environment variablesAfter restarting, the verified Directus node should appear when you search for "Directus" in the node palette. ::
Before you can use the Directus nodes, you need to connect to your Directus instance:
::callout{icon="material-symbols:info-outline"} Permissions
Admin Token (Recommended for Getting Started)
Many operations, including creating webhooks for triggers, require Administrator permissions. Assign the Administrator role to the user for the easiest setup and full access to all collections and features.
Custom Role (For Production)
For better security, create a custom role with specific permissions. This allows you to limit access to only the collections and operations your workflows need. The token inherits the user's role permissions, so you can lock down access while still allowing necessary operations. ::
This error occurs when stale files remain in n8n's community nodes directory after updates or reinstallation. This is a known n8n platform issue, not specific to the Directus node.
For Docker deployments:
docker exec -it <container-name> sh -c "cd /home/node/.n8n/nodes && rm -rf package.json node_modules"
docker restart <container-name>
For standard installations:
rm -rf ~/.n8n/nodes::callout{icon="material-symbols:warning"} Important: After clearing the nodes directory, always reinstall by searching for "Directus" in the node palette (the + button), not through Settings → Community Nodes. The node palette search will show the verified Directus node with a shield icon. ::
If you see this error, you're likely trying to install via Settings → Community Nodes using the package name @directus/n8n-nodes-directus.
Solution: Install through the node palette instead:
The Directus node is officially verified by n8n, but the verification system only works when installing through the node palette search, not through manual package name entry.
If your Directus nodes disappear after container restarts, ensure you're persisting the ~/.n8n/nodes volume:
volumes:
- n8n_data:/home/node/.n8n
Working with Directus Actions →
Perform operations on your Directus data: create, read, update, and delete items, users, and files.
Set up automated workflows that trigger when events happen in Directus.
Use raw CRUD operations with Directus filter syntax, complex queries, and advanced query parameters.