AI Agents

Extract Email Data and Save Contacts to HubSpot

17 nodes 290 168 Automatic trigger
Download

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. 1.Trigger the workflow manually or upon new Gmail messages
  2. 2.Process email content with Gemini to extract customer and opportunity data
  3. 3.Divide results into batches to ensure stable processing
  4. 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

Gemini Gmail Twitter/X HubSpot Split In Batches

Details

Trigger Automatic trigger
Nodes 17
Apps 5
Views 290
Downloads 168

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (17)

/

When clicking ‘Test workflow’

Manual Trigger

#1

Variables

Set

#2

Google Gemini Chat Model

Gemini Model

#3

Google Gemini Chat Model1

Gemini Model

#4

Create Draft Email For Review

Gmail

#5

Generate Sales Email

Information Extractor

#6

Sticky Note

Sticky Note

#7

Sticky Note1

Sticky Note

#8

Sticky Note2

Sticky Note

#9

Sticky Note3

Sticky Note

#10

Analyse and Build Persona

Information Extractor

#11

Sticky Note4

Sticky Note

#12

Get All Customer's Correspondence

Gmail

#13

Get Contacts

Hubspot

#14

For Each Contact

Split In Batches

#15

Contact Ref

No Op

#16

Sticky Note5

Sticky Note

#17