Process Shopify Lead Emails from Gmail to HubSpot Contacts and Deals β€” n8n Workflow

Gemiddeld complexiteit⚑ Trigger8 knooppunten🀝 Salesdoor Shahzaib Anwar

Overzicht

πŸ“Œ 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

Gebruikte knooppunten

HubSpotGmailCode

Workflow-voorvertoning

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

Hoe het werkt

  1. 1

    Trigger

    De workflow start met een trigger-trigger.

  2. 2

    Verwerking

    Gegevens stromen door 8 knooppunten, connecting code, function, gmail.

  3. 3

    Uitvoer

    De workflow voltooit zijn automatisering en levert het resultaat aan de geconfigureerde bestemming.

Knooppuntdetails (8)

HU

HubSpot

hubspot

#1
GM

Gmail

gmail

#2
CO

Code

code

#3

Hoe deze workflow te importeren

  1. 1Klik op de knop JSON downloaden rechts om het workflowbestand op te slaan.
  2. 2Open uw n8n-instantie. Ga naar Workflows β†’ Nieuw β†’ Importeren uit bestand.
  3. 3Selecteer het gedownloade bestand process-shopify-lead-emails-from-gmail-to-hubspot-contacts-and-deals en klik op Importeren.
  4. 4Stel inloggegevens in voor elk serviceknooppunt (API-sleutels, OAuth, enz.).
  5. 5Klik op Workflow testen om te controleren of alles werkt, activeer het vervolgens.

Of plak rechtstreeks in n8n β†’ Importeren uit JSON:

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

Integraties

codefunctiongmailgmailtriggerhubspotifset

Haal deze workflow op

Download en importeer met één klik

JSON downloadenBekijken op n8n.io
Knooppunten8
Complexiteitmedium
Triggertrigger
CategorieSales

Gemaakt door

Shahzaib Anwar

Shahzaib Anwar

@shahzaibanwar

Tags

codefunctiongmailgmailtriggerhubspotifset
⚑

Nieuw bij n8n?

n8n is een gratis open-source workflow-automatiseringstool. Host het zelf of gebruik de cloudversie.

n8n gratis ophalen β†’