Process Shopify Lead Emails from Gmail to HubSpot Contacts and Deals โ€” n8n ์›Œํฌํ”Œ๋กœ

๋ณดํ†ต ๋ณต์žก๋„โšก ํŠธ๋ฆฌ๊ฑฐ8๊ฐœ์˜ ๋…ธ๋“œ๐Ÿค Sales์ž‘์„ฑ์ž: Shahzaib Anwar

๊ฐœ์š”

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

์‚ฌ์šฉ๋œ ๋…ธ๋“œ

HubSpotGmailCode

์›Œํฌํ”Œ๋กœ ๋ฏธ๋ฆฌ๋ณด๊ธฐ

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

์ž‘๋™ ์›๋ฆฌ

  1. 1

    ํŠธ๋ฆฌ๊ฑฐ

    ์›Œํฌํ”Œ๋กœ๋Š” ํŠธ๋ฆฌ๊ฑฐ ํŠธ๋ฆฌ๊ฑฐ๋กœ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค.

  2. 2

    ์ฒ˜๋ฆฌ

    ๋ฐ์ดํ„ฐ๊ฐ€ 8๊ฐœ์˜ ๋…ธ๋“œ๋ฅผ ํ†ตํ•ด ํ๋ฆ…๋‹ˆ๋‹ค, connecting code, function, gmail.

  3. 3

    ์ถœ๋ ฅ

    ์›Œํฌํ”Œ๋กœ๊ฐ€ ์ž๋™ํ™”๋ฅผ ์™„๋ฃŒํ•˜๊ณ  ๊ตฌ์„ฑ๋œ ๋Œ€์ƒ์— ๊ฒฐ๊ณผ๋ฅผ ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค.

๋…ธ๋“œ ์„ธ๋ถ€ ์ •๋ณด (8)

HU

HubSpot

hubspot

#1
GM

Gmail

gmail

#2
CO

Code

code

#3

์ด ์›Œํฌํ”Œ๋กœ ๊ฐ€์ ธ์˜ค๋Š” ๋ฐฉ๋ฒ•

  1. 1์˜ค๋ฅธ์ชฝ์˜ JSON ๋‹ค์šด๋กœ๋“œ ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜์—ฌ ์›Œํฌํ”Œ๋กœ ํŒŒ์ผ์„ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.
  2. 2n8n ์ธ์Šคํ„ด์Šค๋ฅผ ์—ด๊ณ  ์›Œํฌํ”Œ๋กœ โ†’ ์ƒˆ๋กœ ๋งŒ๋“ค๊ธฐ โ†’ ํŒŒ์ผ์—์„œ ๊ฐ€์ ธ์˜ค๊ธฐ๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.
  3. 3๋‹ค์šด๋กœ๋“œ๋œ process-shopify-lead-emails-from-gmail-to-hubspot-contacts-and-deals ํŒŒ์ผ์„ ์„ ํƒํ•˜๊ณ  ๊ฐ€์ ธ์˜ค๊ธฐ๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.
  4. 4๊ฐ ์„œ๋น„์Šค ๋…ธ๋“œ์— ๋Œ€ํ•œ ์ž๊ฒฉ ์ฆ๋ช…๏ผˆAPI ํ‚ค, OAuth ๋“ฑ๏ผ‰์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.
  5. 5์›Œํฌํ”Œ๋กœ ํ…Œ์ŠคํŠธ๋ฅผ ํด๋ฆญํ•˜์—ฌ ๋ชจ๋“  ๊ฒƒ์ด ์ž‘๋™ํ•˜๋Š”์ง€ ํ™•์ธํ•œ ํ›„ ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค.

๋˜๋Š” n8n โ†’ JSON์—์„œ ๊ฐ€์ ธ์˜ค๊ธฐ์— ์ง์ ‘ ๋ถ™์—ฌ๋„ฃ๊ธฐ:

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

ํ†ตํ•ฉ

codefunctiongmailgmailtriggerhubspotifset

์ด ์›Œํฌํ”Œ๋กœ ๊ฐ€์ ธ์˜ค๊ธฐ

ํ•œ ๋ฒˆ์˜ ํด๋ฆญ์œผ๋กœ ๋‹ค์šด๋กœ๋“œ ๋ฐ ๊ฐ€์ ธ์˜ค๊ธฐ

JSON ๋‹ค์šด๋กœ๋“œn8n.io์—์„œ ๋ณด๊ธฐ
๋…ธ๋“œ8
๋ณต์žก๋„medium
ํŠธ๋ฆฌ๊ฑฐtrigger
์นดํ…Œ๊ณ ๋ฆฌSales

์ œ์ž‘์ž

Shahzaib Anwar

Shahzaib Anwar

@shahzaibanwar

ํƒœ๊ทธ

codefunctiongmailgmailtriggerhubspotifset
โšก

n8n์„ ์ฒ˜์Œ ์‚ฌ์šฉํ•˜์‹œ๋‚˜์š”?

n8n์€ ๋ฌด๋ฃŒ ์˜คํ”ˆ์†Œ์Šค ์›Œํฌํ”Œ๋กœ ์ž๋™ํ™” ๋„๊ตฌ์ž…๋‹ˆ๋‹ค. ์ž์ฒด ํ˜ธ์ŠคํŒ…ํ•˜๊ฑฐ๋‚˜ ํด๋ผ์šฐ๋“œ ๋ฒ„์ „์„ ์‚ฌ์šฉํ•˜์„ธ์š”.

n8n ๋ฌด๋ฃŒ๋กœ ์‹œ์ž‘ํ•˜๊ธฐ โ†’