Block 1 - Gmail Trigger
- Type / Role
- n8n-nodes-base.gmailTrigger - gmailTrigger
- Config choices
- Version 1.2
This workflow is provided as-is. Please review and test before using in production.
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 ...
n8n-nodes-base.gmailtrigger, n8n-nodes-base.gmail, n8n-nodes-base.function, n8n-nodes-base.if, n8n-nodes-base.code, n8n-nodes-base.set, n8n-nodes-base.hubspot, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Shahzaib Anwar.
Original n8n.io sourceThis 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.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Process Shopify lead emails from Gmail to HubSpot contacts and deals |
|---|---|
| Complexity | advanced |
| Nodes | 16 |
| Categories | Lead Generation, CRM |
| Author | Shahzaib Anwar |
| Published | 16 Sept 2025 |
Use the JSON export at /data/workflows/8647/8647.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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 ...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, CRM use case.