Back to Blog

Try n8n free for 10 days

After trial, plans start from $7/mo. No charge until day 11.

n8nMauticintegrationmarketing automationtutorial

n8n + Mautic Integration: 5 Powerful Workflows You Can Build

n8nautomation TeamApril 29, 2026
TL;DR: n8n's Mautic integration lets you automate lead nurturing, contact synchronization, and campaign triggers without writing code. This guide covers 5 production-ready workflows you can build today, from CRM-to-Mautic contact sync to multi-channel campaign automation.

The n8n Mautic integration connects n8n's workflow automation with Mautic's open-source marketing automation platform, giving you full control over lead nurturing, contact management, and campaign orchestration without per-contact pricing or vendor lock-in.

Mautic is the leading open-source alternative to HubSpot and Marketo, trusted by marketing teams who want data ownership and unlimited contacts. When you combine it with n8n, you can automate complex multi-step campaigns, sync data across your entire stack, and build marketing workflows that would cost thousands on proprietary platforms.

What Is Mautic and Why Automate It?

Mautic is a free, self-hosted marketing automation platform that handles email campaigns, lead scoring, contact segmentation, and multi-channel marketing. Unlike SaaS alternatives, you own your data and pay nothing per contact.

Here's what you can do with Mautic:

  • Build automated email drip campaigns with conditional logic
  • Score leads based on website behavior and engagement
  • Segment contacts dynamically using tags, custom fields, and activity data
  • Track campaign performance with built-in analytics
  • Create landing pages and forms without external tools

But Mautic doesn't connect natively to most business tools. That's where n8n comes in. With n8n's Mautic node, you can:

  • Sync contacts from your CRM, database, or form tools
  • Trigger campaigns based on external events (purchases, support tickets, app usage)
  • Update contact data and segments in real-time
  • Send notifications when high-value leads take specific actions
  • Orchestrate multi-channel campaigns across email, SMS, Slack, and more

Setting Up n8n + Mautic Integration

Before building workflows, you need to connect n8n to your Mautic instance. Here's how:

  1. Log in to your Mautic account and navigate to Settings → API Credentials.
  2. Click New and select OAuth 2 as the authentication type.
  3. Set the Redirect URI to your n8n webhook URL (you'll find this in n8n's credential setup).
  4. Copy the Client ID and Client Secret.
  5. In n8n, add a new credential for Mautic and paste your Client ID, Client Secret, and Mautic base URL.
  6. Click Connect and authorize n8n to access your Mautic account.

If you're using n8nautomation.cloud, credentials are stored securely and persist across workflow updates with zero configuration headaches.

Tip: If you're self-hosting Mautic, make sure your instance is accessible via HTTPS and that CORS is configured to allow requests from your n8n domain.

Workflow 1: Auto-Sync New CRM Contacts to Mautic

This workflow automatically adds new contacts from your CRM (HubSpot, Salesforce, Pipedrive) to Mautic, keeping your marketing database in sync without manual exports.

Use case: Sales closes a deal in your CRM → Contact is added to Mautic → Onboarding email campaign starts automatically.

Nodes you'll use:

  • HubSpot Trigger: Listens for new contacts or deal stage changes
  • Mautic: Creates or updates contact with custom fields
  • Mautic: Adds contact to a specific segment (e.g., "New Customers")

Step-by-step setup:

  1. Add a HubSpot Trigger node and select Contact Created as the event.
  2. Add a Mautic node, set operation to Create or Update, and map fields:
    • Email → {{$json.properties.email}}
    • First Name → {{$json.properties.firstname}}
    • Last Name → {{$json.properties.lastname}}
    • Company → {{$json.properties.company}}
  3. Add a second Mautic node, set operation to Add Contact to Segment, and select your target segment.
  4. Test the workflow by creating a test contact in HubSpot and verifying it appears in Mautic.

Tip: Use n8n's Merge node to combine contact data from multiple sources (CRM, forms, Stripe) before sending to Mautic.

Workflow 2: Trigger Campaigns from Form Submissions

This workflow starts a Mautic campaign when someone fills out a form on your website, whether it's a Typeform, Google Form, or custom webhook.

Use case: Someone downloads your ebook → Contact is added to Mautic → 5-email nurture sequence starts automatically.

Nodes you'll use:

  • Webhook: Receives form submission data
  • Mautic: Creates contact with form data
  • Mautic: Adds contact to campaign

Step-by-step setup:

  1. Add a Webhook node and copy the webhook URL.
  2. Configure your form tool (Typeform, Webflow, etc.) to POST submissions to this URL.
  3. Add a Mautic node, set operation to Create or Update, and map form fields to Mautic contact fields.
  4. Add a second Mautic node, set operation to Add Contact to Campaign, and select your campaign ID.
  5. Add an optional Slack node to notify your team when a high-value lead submits the form.

This workflow runs in real-time, so leads enter your nurture sequence within seconds of form submission.

Workflow 3: Update Contact Segments Based on Behavior

This workflow dynamically updates Mautic segments based on user behavior in your app, payment platform, or support system.

Use case: Customer upgrades to premium plan in Stripe → Contact is moved to "Premium Users" segment in Mautic → Premium onboarding emails are triggered.

Nodes you'll use:

  • Stripe Trigger: Listens for subscription updates
  • Mautic: Fetches contact by email
  • Mautic: Removes contact from old segment
  • Mautic: Adds contact to new segment

Step-by-step setup:

  1. Add a Stripe Trigger node and select Subscription Updated as the event.
  2. Add a Mautic node, set operation to Get Contact, and use {{$json.customer.email}} as the search field.
  3. Add a Mautic node, set operation to Remove Contact from Segment, and select the old segment (e.g., "Free Users").
  4. Add a final Mautic node, set operation to Add Contact to Segment, and select the new segment (e.g., "Premium Users").

You can extend this workflow to handle downgrades, cancellations, or trial expirations by adding conditional branches with n8n's IF node.

Workflow 4: Send Slack Alerts for High-Value Lead Actions

This workflow monitors Mautic for high-value lead activities (email opens, link clicks, page visits) and sends real-time alerts to Slack so your sales team can follow up immediately.

Use case: Lead opens your pricing email 3 times in one day → Slack alert sent to #sales → Rep reaches out while lead is hot.

Nodes you'll use:

  • Schedule Trigger: Checks Mautic every 5 minutes
  • Mautic: Fetches recent contact activities
  • IF: Filters for high-value actions
  • Slack: Sends formatted alert with contact details

Step-by-step setup:

  1. Add a Schedule Trigger node and set it to run every 5 minutes.
  2. Add a Mautic node, set operation to Get All Activities, and filter by date (last 5 minutes).
  3. Add an IF node to filter for specific actions (e.g., email opens, pricing page visits, demo form submissions).
  4. Add a Slack node and format the message:
    • Channel: #sales
    • Message: "🔥 Hot lead: {{$json.contact.email}} just {{$json.action}} - Lead score: {{$json.contact.points}}"

This workflow helps sales teams prioritize outreach based on real-time engagement signals rather than cold lists.

Workflow 5: Multi-Channel Campaign Orchestration

This advanced workflow orchestrates campaigns across email (Mautic), SMS (Twilio), and Slack based on contact behavior and preferences.

Use case: Lead downloads whitepaper → Email sent via Mautic → If no open after 2 days → SMS reminder via Twilio → If link clicked → Slack notification to sales.

Nodes you'll use:

  • Webhook: Receives form submission
  • Mautic: Creates contact and adds to campaign
  • Wait: Delays for 2 days
  • Mautic: Checks if email was opened
  • IF: Branches based on open status
  • Twilio: Sends SMS if email not opened
  • Slack: Notifies sales if link clicked

Step-by-step setup:

  1. Add a Webhook node to receive form submissions.
  2. Add a Mautic node to create the contact and add them to your email campaign.
  3. Add a Wait node set to 2 days.
  4. Add a Mautic node to fetch contact activity and check for email opens.
  5. Add an IF node: if email not opened, route to Twilio; if opened, check for link clicks.
  6. Add a Twilio node to send an SMS reminder.
  7. Add a Slack node to notify sales when a link is clicked.

This workflow demonstrates how n8n turns Mautic into a true multi-channel marketing automation platform, something that would require expensive enterprise software otherwise.

Note: Test multi-day workflows thoroughly before deploying to production. Use n8n's execution logs to debug timing issues and verify Wait nodes are configured correctly.

Best Practices for n8n + Mautic Workflows

After building hundreds of Mautic automations, here are the patterns that prevent errors and improve performance:

  1. Always use "Create or Update" instead of "Create": This prevents duplicate contact errors when the same email is submitted multiple times.
  2. Rate limit API calls: Mautic has API rate limits. If you're syncing large contact lists, use n8n's Split in Batches node with delays between batches.
  3. Store Mautic IDs in your database: When syncing contacts between systems, store the Mautic contact ID in your source database to speed up updates and avoid lookups.
  4. Use segments, not tags: Mautic segments are dynamic and update automatically based on rules. Tags require manual management. Segments scale better.
  5. Add error handling: Wrap Mautic nodes in n8n's error handling workflow to catch API failures and retry or log them.
  6. Monitor execution times: Mautic API calls can be slow on self-hosted instances. Use n8n's execution logs to identify bottlenecks.
  7. Test with real data: Mautic's staging environments often behave differently than production. Test workflows with real contact data before going live.

If you're running these workflows on n8nautomation.cloud, you get automatic execution monitoring, 24/7 uptime, and instant rollback if a workflow breaks—no server management required.

The n8n Mautic integration gives you enterprise-grade marketing automation without enterprise pricing. Whether you're syncing contacts from your CRM, triggering campaigns based on user behavior, or orchestrating multi-channel outreach, these five workflows show how n8n turns Mautic into the central hub of your marketing stack.

Start with the CRM sync workflow, add campaign triggers as you go, and build up to multi-channel orchestration once you're comfortable. With n8n and Mautic, you own your data, control your automations, and pay nothing per contact—just the way marketing automation should work.

Ready to automate with n8n?

Get affordable managed n8n hosting with 24/7 support.