Process Shopify Lead Emails from Gmail to HubSpot Contacts and Deals — Workflow n8n

Moyen complexité⚥ DĂ©clencheur8 nƓudsđŸ€ Salespar Shahzaib Anwar

Aperçu

📌 Overview This workflow automatically processes incoming Shopify/Gmail leads and pushes them into HubSpot as both Contacts and Deals.

It helps sales and marketing teams capture leads instantly, enrich CRM data, and avoid missed opportunities.

⚡ How it works Trigger: Watches for new emails in Gmail.
Extract Data: Parses email body (Name, Email, City, Phone, Message, Product URL/Title).
Condition: Checks if sender is Shopify before processing.
HubSpot:
Creates/updates a Contact w

NƓuds utilisĂ©s

HubSpotGmailCode

Aperçu du workflow

Gmail Trigger
Polls Gmail every minute and emits new emails into the
Get Message
Fetches full email (body + metadata) for parsing.
Extract From Email
Pulls sender address used for filtering/routing.
If Sender is Shopify
Processes only emails from Shopify (change to your sour
Code (Regex Parser)
Extracts: name, email, city, phone, message, product_ur
Adjust regex if your email format differs.
Edit Fields
Normalizes extracted values into clean JSON for HubSpot
HubSpot Contact
Creates/updates a Contact (email, name, phone, city).
HubSpot Deal
Creates a Deal linked to the Contact.
Set your pipeline stage (replace `YOUR_STAGE_ID`).
⚡
G
Gmail Trigger
Get a message
E
Extract From Email
I
If Sender is Shopify
Code
E
Edit Fields
Create or update a contact
Create a deal
8 nodes7 edges

Comment ça fonctionne

  1. 1

    Déclencheur

    Le workflow démarre avec un déclencheur déclencheur.

  2. 2

    Traitement

    Les donnĂ©es transitent par 8 nƓuds, connecting code, function, gmail.

  3. 3

    Sortie

    Le workflow termine son automatisation et livre le résultat à la destination configurée.

DĂ©tails des nƓuds (8)

HU

HubSpot

hubspot

#1
GM

Gmail

gmail

#2
CO

Code

code

#3

Comment importer ce workflow

  1. 1Cliquez sur le bouton Télécharger JSON à droite pour enregistrer le fichier du workflow.
  2. 2Ouvrez votre instance n8n. AccĂ©dez Ă  Workflows → Nouveau → Importer depuis un fichier.
  3. 3Sélectionnez le fichier process-shopify-lead-emails-from-gmail-to-hubspot-contacts-and-deals téléchargé et cliquez sur Importer.
  4. 4Configurez les identifiants pour chaque nƓud de service (clĂ©s API, OAuth, etc.).
  5. 5Cliquez sur Tester le workflow pour vérifier que tout fonctionne, puis activez-le.

Ou collez directement dans n8n → Importer depuis JSON :

{ "name": "Process Shopify Lead Emails from Gmail to HubSpot Contacts and Deals", "nodes": [...], ...}

Intégrations

codefunctiongmailgmailtriggerhubspotifset

Obtenir ce workflow

Téléchargez et importez en un clic

Télécharger JSONVoir sur n8n.io
NƓuds8
Complexitémedium
Déclencheurtrigger
CatégorieSales

Créé par

Shahzaib Anwar

Shahzaib Anwar

@shahzaibanwar

Tags

codefunctiongmailgmailtriggerhubspotifset
⚡

Nouveau sur n8n ?

n8n est un outil d'automatisation de workflows gratuit et open-source. HĂ©bergez-le vous-mĂȘme ou utilisez la version cloud.

Obtenir n8n gratuitement →