Automating Mautic with n8n workflows

Use n8n's Mautic node to create and update contacts, manage segments and campaigns, send email and maintain Do Not Contact status from workflows you host. This page covers the setup, credentials, licensing and failure points to plan for.

On this page

Automating Mautic with n8n workflows: what the integration covers

When a team needs Mautic to exchange contact data with other systems without writing custom code, the supported route is the n8n Mautic node. Inside an n8n workflow, the node can create, update, delete and get contacts and companies, add or remove contacts from campaigns, segments and companies, edit contact points, update the Do Not Contact list and send emails. That covers most of the traffic a marketing operations team usually needs between Mautic and a CRM, a data warehouse, a form tool or an internal database. The node is a building block, though. Each workflow still needs a trigger, field mapping that matches the contact model you designed in Mautic, and a decision about which system is the source of truth for each field.

Be clear about what you are adding to the stack. n8n is a separate product with its own license, not part of Mautic. Its Sustainable Use License allows internal business use and free non-commercial distribution, and files marked with .ee fall under a separate n8n Enterprise License, so the license terms need review before the team builds on them. Your team must also host, patch, back up and monitor the n8n instance, and n8n stores the credentials that let workflows write to Mautic. Plan an owner for that instance alongside the owner for Mautic itself. Confirm with n8n which edition and license terms apply to your organization's use before go-live.

Treat the n8n layer as a second system with its own access model. Each Mautic credential used by a workflow should belong to a dedicated Mautic user with the narrowest role that performs the operation, and changes to Do Not Contact status or campaign membership should be logged in both systems. Decide early whether workflows run on a single n8n instance or on a queue mode setup with workers, because that choice affects how the encryption key is shared and how far the setup can scale. Scope the work in writing with the workflows, trigger sources, data fields and Mautic versions listed, so the integration can be tested against the same contact model that will run in production.

What you need before building Mautic workflows in n8n

Four systems have to be ready before any workflow runs: a supported Mautic instance, a self-hosted n8n instance whose license fits your use, a Mautic API user with the right permissions, and a network path between the two. Confirm each item in this order so problems surface before you design flows.

Supported Mautic version and stack

Pick a Mautic release line that is still receiving security support on the day you start, then match its PHP, database and web server requirements. Mautic 7.0 requires PHP 8.2, 8.3, 8.4 or 8.5, and MySQL 5.7 or higher with InnoDB or MariaDB 10.2 or higher. Mautic should not run on shared hosting, so confirm you have a VPS or dedicated server before the n8n work begins.

Mautic 7.0 PHP range
PHP 8.2 to 8.5
Mautic requirements

Self-hosted n8n edition and license

The Mautic node runs in n8n, so decide whether your n8n deployment is the free Community edition or a paid tier. n8n's Sustainable Use License permits internal business use, but files with .ee in their name need a valid Enterprise License. Confirm the exact n8n edition and version against the release notes before you build, since features such as queue mode and SAML depend on the tier.

n8n license terms

Queue mode and encryption key

A single n8n process is enough for a small set of flows. If you move to queue mode, the main instance hands executions to workers through Redis and those workers read credentials from PostgreSQL. Every worker and webhook processor then needs the same encryption key as the main instance, or stored Mautic credentials will not decrypt. Record where that key is kept before you deploy additional nodes.

n8n queue mode docs

Dedicated Mautic API user and role

Create a named Mautic user for n8n rather than reusing an administrator login. Give it only the permissions the flows need, such as contacts, companies, segments and campaigns, and check that the role can edit Do Not Contact settings if your flows will update them. Mautic uses basic authentication for users, so store the credentials in n8n's credential store and rotate them when staff change.

Mautic authentication docs

Network path between n8n and Mautic

Confirm that n8n can reach the Mautic base URL over HTTPS from the host or container that runs the Mautic node, and that Mautic's API endpoints are not blocked by a proxy, web application firewall or IP allowlist. If you use webhooks from Mautic into n8n, the reverse direction also needs a reachable n8n webhook URL. Test both paths with a read-only request before writing production flows.

n8n Mautic node docs

Cron and queue workers on Mautic

Mautic runs segment updates, campaign updates and campaign triggers on cron jobs, and sends queued email through a messenger consumer. A flow that adds contacts to a segment or campaign will not produce the expected result if those jobs are not running on schedule. Confirm the cron schedule and worker process on the Mautic host before you test campaign operations from n8n.

Mautic cron jobs docs

How to configure the Mautic node step by step

This sequence takes you from a dedicated Mautic API user to a tested n8n workflow that reads, creates, updates and segments contacts, with a check at each stage so faults are found while the change is still small.

  1. Create a dedicated Mautic API user

    Your Mautic administrator creates a separate user for n8n and gives it only the permissions the workflows need, such as access to contacts, segments and campaigns that the planned operations touch. Avoid reusing a personal administrator account. Confirm the scope with your Mautic team before you go further, and record which permissions were granted and why. The step is done when the user can sign in to the API and the permission list matches your written workflow design. Check the current API authentication options in the Mautic authentication documentation for your release, because the supported method determines which credential fields you will enter in n8n.

  2. Store Mautic credentials in n8n

    Create a Mautic credential in n8n's credential store, entering the instance URL and the API user's details, and save it under a name that identifies the environment, such as production or test. Confirm that the n8n main instance has an encryption key configured and that the key is backed up with your other secrets. If you run queue mode, the same key must be available to every worker and webhook processor, or they cannot read the stored credential. The step is done when the credential saves without error and the n8n instance can display it as configured without showing the secret value.

  3. Test a read-only Get Contact call

    Add a Mautic node to a new workflow with a manual trigger, select the Get operation for contacts, and enter the ID of a known test contact. Run the node once and inspect the returned fields against the contact record in Mautic. This confirms that the URL, authentication and permissions work without changing any data. The step is done when the execution succeeds and the output fields match what the Mautic contact page shows. If the call fails, check the instance URL, the API user's permissions and the credential before changing the workflow.

  4. Add a contact create operation

    Extend the workflow with a Create contact operation that writes only to a test contact space, using fields your contact model defines, such as email and first name. Map each field explicitly rather than passing the whole input object, so unexpected data does not reach Mautic. Run the workflow with sample data. The step is done when the new contact appears in Mautic with each expected field populated, and the test record is labelled so it can be removed later.

  5. Add a contact update operation

    Add an Update operation that targets the contact created in the previous step and changes one field at a time. Use the contact ID returned by the create step rather than a lookup by email, which keeps the test deterministic. Run the workflow and compare the record in Mautic before and after. The step is done when only the intended field has changed and no other field on the contact was overwritten.

  6. Add segment and campaign membership

    Add operations that add the test contact to a test segment, then to a test campaign, and then remove the contact from both. Add each operation separately and run the workflow after each addition. Confirm that the segment and campaign membership changes appear on the contact in Mautic and that the campaign does not send any messages to the test contact. The step is done when membership changes match the workflow output and the test campaign has no unexpected activity. Mautic's cron jobs update segments and campaigns on their own schedule, so check the cron configuration if memberships appear late.

  7. Test Do Not Contact and email operations

    Run the Do Not Contact update and the email send operation only against addresses you own, in a test environment or with a test sending configuration. Confirm the contact's Do Not Contact status changes as expected and that a test email arrives with the correct content. The step is done when both operations produce the expected result in Mautic and in the recipient mailbox. Confirm with your Mautic and email teams which operations may run in production and who approves them before you enable any schedule.

How a Mautic event moves through n8n to the connected system

A contact action in Mautic is picked up by an n8n trigger or queried by a Mautic node operation. In queue mode the main instance accepts the trigger and hands the execution through Redis to workers that read and write workflow data in PostgreSQL, and those workers use credentials decrypted with the shared encryption key. Check each boundary: who holds the Mautic API credentials, which workers can reach the encryption key, and what the downstream system accepts from n8n.

Data and trust boundaries between Mautic, self-hosted n8n and the downstream system.

Why n8n licensing and edition choice affect this integration

n8n is not licensed like most open-source platforms, so the license should be checked before the Mautic workflows go into production. n8n is distributed under the Sustainable Use License, which allows use or modification only for your own internal business purposes or for non-commercial or personal use. Distribution is permitted only free of charge and only for non-commercial purposes. If your organization runs these workflows to serve clients, resells the automation, or embeds it in a product, the internal-use condition may not fit. Files with .ee in their name or directory fall outside that license and need a valid n8n Enterprise License, so any feature you plan to use should be traced to its source file or to the vendor's documentation before the design is fixed.

Edition choice also changes what the integration can rely on. According to n8n's pricing page, SSO and LDAP, environments with Git, and log streaming are included only in the Business and Enterprise plans. If the Mautic workflows must sit behind the same identity provider as the rest of your staff access, or if workflow changes must be promoted through Git with an audit trail, the Community edition will not cover those needs. Multi-main setup, which runs several main instances for high availability, is restricted to Enterprise self-hosted deployments and is not available in the Community edition or n8n Cloud. A team that needs no single point of failure for scheduled Mautic sends should ask n8n directly whether that requirement is met by the edition in its quote.

Before production use, confirm the license fit with n8n and with your own counsel. Ask n8n in writing which edition and license terms apply to your planned use, including whether a Business plan is currently available to you, since the pricing page lists it as self-hosted only. Record the answer alongside the design decision, because a later change in how the workflows are used, such as serving a partner's marketing, can change the answer.

How Mautic contact fields and operations map to n8n data

This table matches each Mautic data type to the n8n Mautic node resource and operation that reads or writes it, with what to check in your own instance. Read each row as a mapping decision: the identifier you carry between steps, the operation that changes Mautic, and the alias or ID to verify before the workflow runs. The main takeaway is that field aliases, segment and campaign IDs and channel settings vary between installations, so confirm them in your instance before mapping any item fields.

Mautic datan8n resource and operationWhat to confirm in your instance
Contact identifier and emailContact, Get or Update, using the contact ID from an earlier stepConfirm the email field alias and how your instance matches existing contacts
Standard contact fields (first and last name)Contact, Create or UpdateConfirm the standard field aliases in your contact field settings
Custom contact fieldsContact, Create or Update, passed as additional fieldsConfirm each custom alias and its type match exactly before mapping
Company recordsCompany, Create or Update, then Contact, add to companyConfirm company field aliases and which company ID your links use
Segment identifiersSegment, add or remove contactUse the numeric segment ID from Mautic, and confirm it in the segment list
Campaign identifiersCampaign, add or remove contactConfirm the campaign ID and whether it is published, since adding a contact starts its flow
Contact pointsContact, Edit pointsConfirm whether point triggers or scoring rules run on the change before writing
Do Not Contact listContact, Update Do Not ContactConfirm which channels your DNC settings cover and what consent record backs the update

Securing credentials, queue mode and workflow access

A self-hosted n8n instance that calls Mautic holds Mautic API credentials, mail settings and the power to change contact consent. The cards below cover where those secrets live, how queue mode shares them across processes, who may edit the workflows that act on contacts, and how exposed webhooks are.

Protect the credential encryption key

n8n stores credentials in its database encrypted with the main instance's encryption key. Whoever holds that key and the database can recover the Mautic API details, so the key belongs in a secrets store with restricted access, not in a workflow or a shared document. Record where it is kept and who can read it. Losing it means re-entering every credential, so back it up with the same care as the database.

n8n queue mode docs

Share the encryption key with every worker

In queue mode the main instance handles triggers and webhooks, while workers run executions that read credentials from PostgreSQL. Every worker and webhook processor must hold the same encryption key as the main instance, or executions fail when they try to decrypt the Mautic credential. Check each new worker during provisioning, and treat the key copies as sensitive wherever they are deployed.

Restrict who edits send and consent workflows

Workflows that send email through Mautic or update the Do Not Contact list change what thousands of people receive or are excluded from. Limit edit and execute rights on those workflows to a named small group, and require a second person to review changes to the node settings, filters and loops that select contacts. Confirm how your n8n edition handles user roles before you rely on it.

Use a least-privilege Mautic API user

Create a dedicated Mautic user for n8n rather than reusing a personal administrator login. Give it only the permissions the workflows need, such as contacts, companies, segments and campaigns, and leave out system settings and user management. Confirm in your Mautic version which API permissions exist and how they map to the operations you plan to run. Rotate the credential when a team member who knew it leaves.

Limit webhook exposure

Webhook nodes accept requests from the internet, so they are the main entry point into a self-hosted n8n instance. Expose only the webhook paths that Mautic or other systems must call, and place the main editor behind your network controls or SSO. Verify that unauthenticated requests cannot trigger sensitive workflows, and check that the webhook URLs in Mautic's own settings point to the intended hosts.

Plan SSO and high availability limits

The n8n pricing page places SSO and LDAP in the Business and Enterprise plans, and multi-main high availability in Enterprise self-hosted deployments only. A Community deployment therefore has a single main instance and local user accounts. Decide early whether that fits your access policy, and confirm current plan features with n8n before design sign-off.

n8n pricing

Common n8n to Mautic failures and how to fix them

This table lists the failures teams most often hit when n8n drives Mautic, with the cause and fix for each. Read it before go-live, then use it as a troubleshooting checklist when a workflow misbehaves in production.

FailureLikely causeFix
Credentials fail to decrypt on workersThe encryption key on the main instance differs from the key on worker or webhook processor nodes, so stored Mautic credentials cannot be read.Set the same encryption key on every main, worker and webhook processor node, restart them, then re-save the Mautic credential and run a test execution.
Duplicate Mautic contactsThe workflow creates a contact without first looking up an existing record by email, so each run adds a new row.Add a Get or lookup step on email before the create branch, and update the existing contact when one is returned. Confirm the email field is mapped to the unique identifier.
Emails sent to Do Not Contact contactsThe workflow sends email through the Mautic node without checking the contact's Do Not Contact status, or the status was never written back from the source system.Check the contact's DNC status before the send step, and update the Do Not Contact list from unsubscribe or bounce events in the same workflow. Test with a suppressed test contact.
Execution counts higher or lower than expectedn8n counts one execution per whole workflow run, not per step or per item, so a plan limit or usage estimate built on item counts will not match.Confirm the counting rule on the current pricing page before sizing a plan, and design loops so the volume you expect matches your model. Ask the vendor to confirm how batch items are counted.
Mautic user lacks permissionThe Mautic API user behind the credential has no role rights for contacts, segments, campaigns or emails, so calls return authorization errors.Create a dedicated Mautic user with a role that grants only the objects the workflow touches, and set the n8n credential to that user. Test each operation after changing roles.
Contacts land in the wrong segment or campaignThe workflow adds contacts by a numeric ID that differs between Mautic environments, such as staging and production.Look up segment and campaign IDs in each environment and store them as environment variables, not hard-coded values. Verify IDs after every Mautic migration or rebuild.

Questions buyers ask before automating Mautic with n8n

What drives the cost of automating Mautic with n8n?

The cost is driven by who does the build, how many workflows and systems are connected, and which n8n edition you run. Self-hosted n8n Community edition is free to download, so the main recurring costs are the servers, the database, and the people who build and maintain the workflows. If you choose n8n cloud, the pricing page lists Starter and Pro plans at 20 euros and 50 euros per month billed annually, a Business plan at 667 euros per month billed annually that is currently self-hosted only, and Enterprise at custom pricing. The pricing page also states that all plans include unlimited users, workflows and every integration, so the number of workflows does not change the plan price. Ask any partner for a quote that separates one-time build work from recurring hosting, upgrades and support, and check the n8n pricing page before you decide which edition your data and identity requirements need.

How long does an n8n to Mautic build take?

Build duration depends on the number of workflows, the number of connected systems, and how much of the contact model is already settled in Mautic. A single workflow that creates contacts and adds them to a segment is a small job. A set of workflows that synchronize companies, update Do Not Contact status, and send email from external triggers takes longer because each one needs field mapping, error handling, and testing against a Mautic instance. No duration figure is supplied for this work, so ask any team for a written timeline tied to a named list of workflows and systems. Ask them to break the timeline into design, build, test and handover so you can see where the time goes.

What must our team provide before the build starts?

The build needs four things from your side: Mautic admin access with a user that can manage contacts, companies, segments and campaigns, a written field list that maps each Mautic field to the source system, a test instance of Mautic that mirrors production, and an owner who can approve Do Not Contact and consent rules. The Mautic admin user should be a named account rather than a shared login, so changes can be traced. Without a test instance, every workflow is tested against live contacts, which carries real consent and deliverability risk. Agree on these inputs in the scope document so the build does not stall waiting for access or definitions.

Can an internal team build Mautic workflows in n8n themselves?

A competent internal team can build simple workflows, especially if one person already knows n8n and has basic knowledge of Mautic objects. The n8n Mautic node can create, update, delete and get contacts and companies, add or remove contacts from campaigns, segments and companies, edit contact points, update the Do Not Contact list and send emails. The harder parts are credential handling, retries, idempotent updates so duplicate triggers do not create duplicate contacts, and designing the Do Not Contact logic so suppression is never lost. Your team should also plan for n8n upgrades and for the hosting work described in the n8n queue mode documentation if workflow volume grows. Assess your team's skills against those items before deciding.

When is it worth bringing in an implementation partner?

A partner is worth bringing in when the workflows touch consent, several source systems, or production contact data, and when your internal team cannot commit time to testing and upkeep. DeployOpen plans, implements, integrates, hardens, documents and supports self-hosted open-source platforms in the client's own infrastructure, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts. Ongoing support and upgrades are available as retainers. A partner is also useful when you need a documented handover that your compliance team can review. If your build is one or two low-risk workflows with a capable owner, an internal build with a short independent review may be enough.

Does the n8n license allow us to run this for our business?

The n8n Sustainable Use License allows use or modification for your own internal business purposes, which covers running workflows that connect your own Mautic instance to your own systems. It does not allow distribution free of charge except for non-commercial purposes, so you cannot package the workflows as a product for other companies under that license. Files with .ee in their name or directory are not covered by the Sustainable Use License and require a valid n8n Enterprise License. Check the license text and your intended use with your legal team, and confirm with n8n before you rely on the Business or Enterprise features, since SSO, LDAP and environments with Git are included only in those plans.

What breaks in an n8n to Mautic integration and how do we check it?

The most common failures are duplicate contacts from repeated triggers, suppression lost when a Do Not Contact update is overwritten, credentials that expire or are shared across environments, and workflows that send email to contacts who should have been removed. Test each workflow against a Mautic test instance with sample contacts, check that a second run does not change results, and confirm that Do Not Contact updates are honored before any campaign sends. In queue mode, the main instance's encryption key must be shared with all worker and webhook processor nodes so they can read stored credentials. If workers cannot decrypt credentials, executions fail, so verify this during staging. Keep a log of executions for audit and review failed runs regularly.

Does n8n support single sign-on for the people who manage these workflows?

Yes, but only on specific plans. n8n SAML single sign-on is available on the Business and Enterprise plans, with step-by-step setup guides for Okta Workforce Identity and Azure AD, and the pricing page lists SSO and LDAP in those same plans. If your identity team requires SSO for everyone who can edit workflows, factor the Business or Enterprise plan into the cost before choosing self-hosted Community edition. Ask your identity team which provider you use and confirm the setup against the n8n SAML documentation before the build starts.

Running Mautic and n8n workflows after go-live

Once the workflows are live, the most important ongoing job is knowing when one has stopped working. Assign the failed execution review to a named owner, and check it on a fixed schedule rather than waiting for a marketing lead to notice missing contacts. Each n8n workflow should have an error path that sends a notification to the team, and the review should cover both n8n execution errors and Mautic API responses that were rejected, such as a contact update that failed because a field no longer exists. Confirm with your n8n edition which execution log, retention and alerting options you actually have, since log streaming is only listed for the Business and Enterprise plans.

Version tracking has to cover two products on two different timelines. Watch the Mautic releases page for patch, minor and major releases, and record which release line your instance runs and when its security support ends. Track n8n through its release notes as well. Before any upgrade of either product, rerun the workflows that touch the Mautic node's contact, segment, campaign, Do Not Contact and email operations in a staging environment, because an API change in one product can silently break a flow that still appears green on the canvas.

Mautic's own background processes also need an owner, and they are the part of this stack most likely to stall unnoticed. Confirm that the cron jobs for segment updates, campaign updates and campaign triggers are running and staggered, and that the broadcasts command and messenger consumer are active if you send queued emails. In an n8n queue setup, keep the main instance and workers running and confirm the shared encryption key is in place on every node. Expect a split of responsibility: the Mautic team owns the instance, cron, queue and data model, the n8n team owns workflow logic, credentials and n8n upgrades, and both agree in writing who responds when a shared integration fails.

How DeployOpen scopes and delivers Mautic and n8n automation

DeployOpen plans, builds, documents and supports self-hosted n8n workflows that connect Mautic to your other systems, inside your own cloud accounts, data centers or air-gapped networks. Engagements are fixed-scope, so the workflows, credentials, hosting and handover are agreed in writing before build work starts.

How we scope

  • Inventory the Mautic contact, company, segment and campaign operations each workflow needs before any build starts.
  • Agree in writing which n8n edition, hosting model and queue mode the workflows will run on.
  • Define credential ownership, Do Not Contact rules and the systems on each side of every integration.

How we build

  • Build workflows on your self-hosted n8n instance, with credentials stored and encrypted under your key management.
  • Test each Mautic node operation against a staging Mautic instance before it touches live contacts.
  • Confirm Do Not Contact updates, segment changes and email sends behave as designed with test contacts.

How we hand over

  • Document each workflow's trigger, inputs, Mautic operations, failure handling and owner.
  • Record the encryption key, credential and backup locations your team must keep under control.
  • Walk your operators through monitoring, rerunning failed executions and changing workflows safely.

How we support

  • Offer ongoing support, upgrades and workflow changes as a retainer after handover.
  • Review n8n and Mautic release notes so workflows keep working across planned upgrades.
  • Retest affected workflows whenever Mautic, n8n or a connected system changes version.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.