Extract Email Data and Save Contacts to HubSpot
Workflow Description
Automation workflow that retrieves Gmail messages, analyzes them with Gemini AI to identify contact and sales opportunity information, then automatically creates or updates records in HubSpot while processing data in batches for reliability.
How it works
- 1.Trigger the workflow manually or upon new Gmail messages
- 2.Process email content with Gemini to extract customer and opportunity data
- 3.Divide results into batches to ensure stable processing
- 4.Create or update contacts and deals in HubSpot automatically
Use cases
- Capture new customers from incoming emails and register them in HubSpot automatically
- Track sales opportunities identified from email communications
Requirements
- Active Gmail account with API access enabled
- HubSpot account with valid API key configured
- Gemini AI enabled for intelligent text processing
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (17)
When clicking ‘Test workflow’
Manual Trigger
Variables
Set
Google Gemini Chat Model
Gemini Model
Google Gemini Chat Model1
Gemini Model
Create Draft Email For Review
Gmail
Generate Sales Email
Information Extractor
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Analyse and Build Persona
Information Extractor
Sticky Note4
Sticky Note
Get All Customer's Correspondence
Gmail
Get Contacts
Hubspot
For Each Contact
Split In Batches
Contact Ref
No Op
Sticky Note5
Sticky Note