← All N8N workflows
Business & commerceCryptoGraphqlIfMauticNo Op

Shopify + Mautic

Configured with Crypto, Graphql, Mautic, Shopify Trigger, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerShopify TriggerShopify TriggerRoutingAccepts Marketing?IfRoutingAccepts Marketing?1IfRoutingNo Operation, donothingNo OpIntegrationAdd to confirmedsegmentMauticIntegrationRemove from confirmedsegmentMauticTriggerWebhookWebhookTransformCryptoCryptoRoutingIfIfRoutingNo Operation, donothing1No OpWeb / APIGraphQLGraphqlWeb / APIMarketing Consent -subscribedGraphqlWeb / APIMarketing Consent -unsubscribedGraphqlRoutingMautic - AcceptsMarketing?IfRoutingCustomer exists?IfRoutingNo Operation, donothing2No OpTransformSet Shopify SubdomainEdit FieldsIntegrationSearch for Contact byEmailMauticRoutingContact exists?IfIntegrationCreate a new contactMautic

Node categories in this workflow

  • Trigger
  • Routing
  • Integration
  • Transform
  • Web / API

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Shopify TriggerTriggerShopify TriggerSee node parameters
Accepts Marketing?RoutingIfSee node parameters
Accepts Marketing?1RoutingIfSee node parameters
No Operation, do nothingRoutingNo OpSee node parameters
Add to confirmed segmentIntegrationMauticcontactSegment
Remove from confirmed segmentIntegrationMauticcontactSegment / remove
WebhookTriggerWebhookSee node parameters
CryptoTransformCryptoSee node parameters
IfRoutingIfSee node parameters
No Operation, do nothing1RoutingNo OpSee node parameters
GraphQLWeb / APIGraphqlSee node parameters
Marketing Consent - subscribedWeb / APIGraphqlSee node parameters
Marketing Consent - unsubscribedWeb / APIGraphqlSee node parameters
Mautic - Accepts Marketing?RoutingIfSee node parameters
Customer exists?RoutingIfSee node parameters
No Operation, do nothing2RoutingNo OpSee node parameters
Set Shopify SubdomainTransformEdit FieldsSee node parameters
Search for Contact by EmailIntegrationMauticgetAll
Contact exists?RoutingIfSee node parameters
Create a new contactIntegrationMauticSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • httpHeaderAuth
  • mauticOAuth2Api
  • shopifyAccessTokenApi

Workflow notes

Webhook Validation

Webhook Validation

We use the same key shared with Mautic to hash the incoming request. If the computed hash is identical to the one delivered the request is valid and can be processed

Mautic Segments

Mautic Segments

The n8n Shopify node cannot Please make sure to select your segment on both nodes

Shopify

Shopify

The n8n Shopify node cannot get customer marketing consent, so we get this from the Shopify GraphQL API

Mautic to Shopify

Mautic to Shopify

This part uses GraphQL calls to the Shopify Admin API. In order to get a better understanding for the queries and mutations please check the API Docs.

Examples from the Shopify Docs used in this workflow:

Get the first ten customers with an enabled customer account

Mutation to update the Email Marketing consent

Shopify to Mautic

Shopify to Mautic

This part uses the Shopify Trigger to watch for changes on customer data.

To use the Mautic nodes please make sure you have the API enabled in your Mautic Instance.

Shopify + Mautic

Shopify + Mautic

Purpose and structure

This folder contains the Shopify + Mautic workflow. Its executable nodes use crypto, graphql, if, mautic, noOp, set, shopifyTrigger, webhook. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Shopify Trigger, Webhook

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Mautic/1526_Mautic_Webhook_Automation_Webhook.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • Set your Shopify Subdomain here

More in Business & commerce