Process Shopify Lead Emails from Gmail to HubSpot Contacts and Deals
π 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 with customer details.
Creates a Deal associated with that contact.
π― Benefits
π₯ Automates lead capture β CRM
π« Eliminates manual copy-paste from Gmail
π Real-time sync between Gmail and HubSpot
π Improves sales follow-up speed and accuracy
π Setup Steps
Import this workflow into your n8n instance.
Connect your Gmail and HubSpot credentials.
Replace the HubSpot Deal Stage ID with your own pipeline stage.
(Optional) Adjust the Code Node regex if your email format differs.
Activate the workflow and test with a sample lead email.
π Example Email Format Name: John Doe Email: john@example.com 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.
Related Templates
Automate Customer Support & Calendar Bookings with OpenAI GPT and Google Calendar
Website AI Agent with Calendar Integration Categories: AI Agents, Website Integration, Calendar Automation This workfl...
Capture Gumroad sales, add buyer to MailerLite group, log to Googleβ―Sheets CRM
Turn Gumroad buyers into loyal email subscribers and keep your CRM upβtoβdate. When someone makes a purchase on your Gu...
Automate Lead Capture with AI Personalized WhatsApp Messages via Unipile & Google Sheets CRM
Inquiry Form to Personalised WhatsApp Message Overview This workflow creates a smart, automated system for capturing le...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments