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.
Name: John Doe
Email: [email protected]
City: London
Phone: +44 7000 000000
Body: Interested in product
Product Url: https://example.com/product
Product Title: Sample Product
sticky_notes:
name: Gmail Trigger
note: >
๐ง Watches for new emails in Gmail.
Polls every minute and passes email data into the flow.
name: Get a Message
note: >
๐ฉ Fetches the full Gmail message content
(body + metadata) for parsing.
name: Extract From Email
note: >
๐ Extracts the senderโs email address
from Gmail to identify the source.
name: If Sender is Shopify
note: >
โ
Condition node that ensures
only Shopify-originated emails/leads are processed.
name: Code Node (Regex Parser)
note: >
๐งพ Parses the email body using regex
to extract Name, Email, City, Phone, Message, Product URL, and Title.
name: Edit Fields (Set Node)
note: >
๐ Cleans and structures the extracted fields
into proper JSON format before sending to HubSpot.
name: HubSpot โ Create/Update Contact
note: >
๐ค Creates or updates a HubSpot Contact
with the extracted lead details.
name: HubSpot โ Create Deal
note: >
๐ผ Creates a HubSpot Deal linked to the Contact,
including campaign/product information.