Developer & DevOps

Sync HubSpot contacts to Google Sheets on schedule

23 nodes 306 129 Scheduled trigger
Download

Workflow Description

This automation syncs contact data from HubSpot to a Google Sheets spreadsheet on a recurring schedule. It processes records in batches and logs all operations to a Postgres database for tracking changes and execution history.

How it works

  1. 1.Trigger sync at scheduled intervals automatically
  2. 2.Retrieve contacts from HubSpot and process in batches
  3. 3.Update Google Sheets and record operations in database

Use cases

  • Keep sales teams updated with current contact information
  • Maintain automated backups of your customer database
  • Generate accessible reports in Google Sheets for management review

Requirements

  • Active HubSpot account with API access key
  • Google Workspace account with Sheets permissions
  • Postgres database server for operation logging

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Split In Batches Postgres HubSpot Google Sheets

Details

Trigger Scheduled trigger
Nodes 23
Apps 4
Views 306
Downloads 129

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 (23)

/

EXTRACT CAMPAIGN DATA

HTTP Request

#1

FETCH ALL CAMPAIGNS

HTTP Request

#2

Loop Over Items

Split In Batches

#3

UPDATE CAMPAIGN

Postgres

#4

Merge

Merge

#5

Code

Code

#6

Loop Over Items1

Split In Batches

#7

HubSpot

Hubspot

#8

If

If

#9

Schedule Trigger

Schedule Trigger

#10

UPSERT CAMPAIGN ACTIVITY

Postgres

#11

HUBSPOT TABLE

Postgres

#12

SEARCH

Postgres

#13

Postgres1

Postgres

#14

UPDATE HUBSPOT ACTIVITY TABLE

Postgres

#15

Sticky Note

Sticky Note

#16

Sticky Note1

Sticky Note

#17

SET SMARTLEAD API KEY

Set

#18

Sticky Note2

Sticky Note

#19

Postgres

Postgres

#20

Sticky Note3

Sticky Note

#21

Sticky Note4

Sticky Note

#22

Google Sheets

Google Sheets

#23