n8n + Strapi
IntermediateAutomationn8n automation workflows triggered by Strapi CMS content events.
Published 27 September 2026
About n8n + Strapi
n8n with Strapi connects your headless CMS to downstream business systems through automated workflows. When content is created, updated, or published in Strapi, webhooks notify n8n, which can distribute that content change to a CDN invalidation API, a notification queue, a translation tool, or any of n8n's 400+ integrations.
Strapi's lifecycle hooks and webhook system emit detailed event payloads for every content type. n8n receives these payloads and routes them through conditional workflows: for example, only triggering a Slack notification for certain content types, or only pushing to the CDN when an article's status changes to published. PostgreSQL stores both Strapi's content data and n8n's workflow execution history.
This stack suits development teams running Strapi as a headless CMS who want automation capabilities that go beyond Strapi's built-in email notifications, without writing custom Strapi plugin code.
Key Features
- ✓Strapi lifecycle webhooks trigger n8n on content create, update, publish, and delete
- ✓Conditional workflow routing based on content type, status, or field values
- ✓n8n nodes for HTTP, email, Slack, and 400+ downstream integrations
- ✓One PostgreSQL server can hold both Strapi's content and n8n's execution history, in separate databases
- ✓No custom Strapi plugin code required for standard integration patterns
- ✓Scheduled n8n workflows for Strapi content audits and bulk operations
When to Use n8n + Strapi
- →Triggering CDN cache invalidation when Strapi content is published
- →Notifying a Slack channel when a new article reaches published status
- →Pushing Strapi content updates to a translation management system
- →Generating image thumbnails or PDF exports when media is uploaded to Strapi
- →Scheduled audits that find Strapi content missing SEO metadata
Pros
- Extends Strapi's native notification capabilities without custom plugin development
- n8n visual editor makes complex multi-step content workflows maintainable
- Both tools are open-source, so full self-hosting is possible for data privacy
- Decouples automation logic from Strapi application code
Cons
- Two systems to maintain and keep updated
- Strapi webhook reliability under high publish volume needs monitoring
- Debugging failed workflow executions across both systems adds complexity
Database Options for n8n + Strapi
Strapi's recommended production database, configured through its built-in connector with no plugin required. It is also the production database n8n recommends for its own data, so one PostgreSQL server can hold Strapi's content and n8n's execution history in two separate databases: one service to run, monitor, and back up instead of two.
Strapi officially supports MySQL as a production backend through the same connector interface as PostgreSQL, a common pick when existing infrastructure already runs MySQL. n8n no longer supports MySQL for its own data, though, so n8n then keeps its execution history in its default SQLite file or a separate PostgreSQL database.
Strapi's own default for local development and evaluation: a single file, zero setup, no separate database server. Good for trying the whole n8n integration on one machine, but not recommended for production traffic once content volume or concurrent editors grow, and moving off it later means migrating the content to PostgreSQL or MySQL.
These are highlighted picks. To see all the tools, check the Databases category.
Frequently Asked Questions about n8n + Strapi
Should Strapi run on PostgreSQL, MySQL, or SQLite in this stack?
PostgreSQL, unless you already run MySQL. The deciding detail is n8n, not Strapi: Strapi works well on all three, but n8n only stores its own data in SQLite or PostgreSQL. With PostgreSQL, both tools share one database server (in separate databases), so there is a single service to back up and monitor. With MySQL, Strapi's content sits in MySQL while n8n keeps its history elsewhere, which is fine when MySQL is already part of your infrastructure but means two database systems to look after. SQLite is for trying the integration locally; move Strapi to a server database before real editors start using it.
How do I make a workflow react only to certain content types?
Filter inside n8n. Strapi's webhook settings let you pick which events fire (entry create, update, publish, unpublish, delete, and media events), but not which content types, so every webhook sends events for every collection. Each payload names its content type in the model field, so the first node after the Webhook trigger should be a Switch or IF node that routes on it and drops the rest. It also pays to choose publish and unpublish over update when the workflow only cares about live content, since update also fires on every draft save.
Can n8n write back to Strapi, and how do I avoid an endless loop?
Yes: n8n's built-in Strapi node creates, reads, updates, and deletes entries using a Strapi API token, and the HTTP Request node covers any endpoint it doesn't. The trap is that n8n's own update fires Strapi's webhook again, so a workflow that listens for updates and then writes a field back will trigger itself. Either have the workflow check whether the field already holds the value before writing, or listen for publish events while writing to the draft. Create a dedicated API token for n8n with access limited to the content types it actually edits.
Should I self-host Strapi or use Strapi Cloud?
Self-host when you are already running a server for n8n: adding Strapi to the same machine costs almost nothing extra, and both tools can share one PostgreSQL server. Strapi Cloud makes sense when nobody wants to own Strapi upgrades, database backups, and media storage, all of which it handles. Two things change with Cloud: n8n's webhook URL must be reachable from the internet, so a self-hosted n8n needs a public endpoint, and the database stays on Strapi's side, so there is no shared server. The Pricing section has the Cloud plan figures.
How is this different from the n8n + Contentful stack?
Same automation layer, different kind of CMS. Strapi is open source and runs on your own server, so the CMS costs a server rather than a subscription, the content lives in your database, and you can change the CMS itself with custom code. Contentful is fully managed: nothing to operate, but its first paid plan is a big step up from the free one, and content lives on Contentful's platform. Pick this stack when you want to own the CMS and its data; pick the Contentful variant when a content team wants a hosted editor with no operations work. The n8n side is similar, but the webhook payloads differ, so workflows need adapting when moving between them.
Stacks Related to n8n + Strapi
Strapi Self-Hosted
InfrastructureSelf-hosted Strapi: an open-source headless CMS with PostgreSQL, on a server you control.
n8n + Streamlit AI Agent
Projectn8n orchestrates AI workflows surfaced as an interactive Streamlit dashboard.
n8n Quick Deploy
InfrastructureDeploy n8n in one click from a VPS marketplace template or a container-platform template, without assembling Docker, a proxy, or TLS yourself.
n8n Self-Hosted
InfrastructureSelf-hosted n8n on your own server, with full control over the database, the host, and how it's exposed to the internet.
Scores
Tools in the n8n + Strapi Stack
n8n + Strapi Pricing
n8n and Strapi are both free to self-host, so the baseline cost is one small server running the database, typically $5–20/mo. Strapi Cloud is a managed alternative for the CMS half, from $35/mo (Starter) to $90/mo (Pro) billed monthly, with yearly billing up to 17% cheaper; n8n can keep running on your own server either way.
Both are free to self-host.
A small VPS running PostgreSQL, MySQL, or SQLite.
Starter is $35/mo and Pro $90/mo billed monthly, if you skip self-hosting the CMS; yearly billing saves up to 17%.