Back to Integrations
integrationGmail node
integrationHubSpot node

Gmail and HubSpot integration

Save yourself the work of writing custom integrations for Gmail and HubSpot and use n8n instead. Build adaptable and scalable Communication, and Sales workflows that work with your technology stack. All within a building experience you will love.

How to connect Gmail and HubSpot

  • Step 1: Create a new workflow
  • Step 2: Add and configure nodes
  • Step 3: Connect
  • Step 4: Customize and extend your integration
  • Step 5: Test and activate your workflow

Step 1: Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

Gmail and HubSpot integration: Create a new workflow and add the first step

Step 2: Add and configure Gmail and HubSpot nodes

You can find Gmail and HubSpot in the nodes panel. Drag them onto your workflow canvas, selecting their actions. Click each node, choose a credential, and authenticate to grant n8n access. Configure Gmail and HubSpot nodes one by one: input data on the left, parameters in the middle, and output data on the right.

Gmail and HubSpot integration: Add and configure Gmail and HubSpot nodes

Step 3: Connect Gmail and HubSpot

A connection establishes a link between Gmail and HubSpot (or vice versa) to route data through the workflow. Data flows from the output of one node to the input of another. You can have single or multiple connections for each node.

Gmail and HubSpot integration: Connect Gmail and HubSpot

Step 4: Customize and extend your Gmail and HubSpot integration

Use n8n's core nodes such as If, Split Out, Merge, and others to transform and manipulate data. Write custom JavaScript or Python in the Code node and run it as a step in your workflow. Connect Gmail and HubSpot with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.

Gmail and HubSpot integration: Customize and extend your Gmail and HubSpot integration

Step 5: Test and activate your Gmail and HubSpot workflow

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from Gmail to HubSpot or vice versa. Easily debug your workflow: you can check past executions to isolate and fix the mistake. Once you've tested everything, make sure to save your workflow and activate it.

Gmail and HubSpot integration: Test and activate your Gmail and HubSpot workflow

Capture leads in HubSpot from Typeform

This workflow is triggered when a typeform is submitted, then it saves the sender's information into HubSpot as a new contact.

Typeform Trigger: triggers the workflow when a typeform is submitted.

Set: sets the fields for the values from Typeform.

HubSpot 1: creates a new contact with information from Typeform.

IF: filters contacts who expressed their interest in business services.

HubSpot 2: updates the contact's stage to opportunity.

Gmail: sends an email to the opportunity contacts with informational material.

NoOp: takes no action for contacts who are not interested.

Nodes used in this workflow

Popular Gmail and HubSpot workflows

Automatically email great leads when they submit a form and record in HubSpot

Use case This workflow automatically qualifies great leads from a form and sends them an email 😮.. It also adds the user to Hubspot if not already added and records the outreach. How to setup Add you MadKudu, Hunter, and Gmail credentials Setup your HubSpot Oauth2 creds using n8n docs Set the email content and subject Click the Test Workflow button, enter your email and check the Slack channel Activate the workflow and use the form trigger production URL to collect your leads in a smart way How to adjust this template You may want to raise or lower the threshold for your leads, as you see fit. You also need to update the content (the email and the subject), obviously 😅.

Send follow-ups using Gmail to Hubspot contacts

Use Case Following up at the right time is one of the most important parts of sales. This workflow uses Gmail to send outreach emails to Hubspot contacts that have already been contacted only once more than a month ago, and records the engagement in Hubspot. Setup Setup HubSpot Oauth2 creds (Be careful with scopes. They have to be exact, not less or more. Yes, it’s not simple, but it’s well documented in the n8n docs. Be smarter than me, read the docs) Setup Gmail creds. Change the email variables in the Set keys node How to adjust this template There's plenty to do here because the approach here is really just a starting point. Most important here is to figure out what your rules are to follow up. After a month? More than once? Also, remember to update the follow-up email! Unless you want to sell n8n 😉

Send outreach/cold email using Gmail to new Hubspot contacts

Use case This workflow uses Gmail to send outreach emails to new Hubspot contacts that have yet to be contacted (usually unknown contacts), and records the outreach in Hubspot. Setup Setup HubSpot Oauth2 creds (Be careful with scopes. They have to be exact, not less or more. Yes, it's not simple, but it's well documented in the n8n docs. Be smarter than me, read the docs) Setup Gmail creds. Change the from email and from name in the Record outreach in HubSpot node How to adjust this template to your needs Change the email message in the Set keys node Think about your criteria to reach out to new contacts. Here we simply filter for only contacts with unknown dates.

Capture leads in HubSpot from Typeform

This workflow is triggered when a typeform is submitted, then it saves the sender's information into HubSpot as a new contact. Typeform Trigger: triggers the workflow when a typeform is submitted. Set: sets the fields for the values from Typeform. HubSpot 1: creates a new contact with information from Typeform. IF: filters contacts who expressed their interest in business services. HubSpot 2: updates the contact's stage to opportunity. Gmail: sends an email to the opportunity contacts with informational material. NoOp: takes no action for contacts who are not interested.

Build your own Gmail and HubSpot integration

Create custom Gmail and HubSpot workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

Gmail supported actions

Add Label
Delete
Get
Get Many
Mark as Read
Mark as Unread
Remove Label
Reply
Send
Send and Wait for Approval
Create
Delete
Get
Get Many
Create
Delete
Get
Get Many
Add Label
Delete
Get
Get Many
Remove Label
Reply
Trash
Untrash

HubSpot supported actions

Create
Create a company
Delete
Delete a company
Get
Get a company
Get Many
Get many companies
Get Recently Created/Updated
Get recently created/updated companies
Search
Search companies by their website domain
Update
Update a company
Create or Update
Create a new contact, or update the current one if it already exists (upsert)
Delete
Delete a contact
Get
Get a contact
Get Many
Get many contacts
Get Recently Created/Updated
Get recently created/updated contacts
Search
Search contacts
Add
Add contact to a list
Remove
Remove a contact from a list
Create
Create a deal
Delete
Delete a deal
Get
Get a deal
Get Many
Get many deals
Get Recently Created/Updated
Get recently created/updated deals
Search
Search deals
Update
Update a deal
Create
Create an engagement
Delete
Delete an engagement
Get
Get an engagement
Get Many
Get many engagements
Create
Create a ticket
Delete
Delete a ticket
Get
Get a ticket
Get Many
Get many tickets
Update
Update a ticket

FAQs

  • Can Gmail connect with HubSpot?

  • Can I use Gmail’s API with n8n?

  • Can I use HubSpot’s API with n8n?

  • Is n8n secure for integrating Gmail and HubSpot?

  • How to get started with Gmail and HubSpot integration in n8n.io?

Need help setting up your Gmail and HubSpot integration?

Discover our latest community's recommendations and join the discussions about Gmail and HubSpot integration.
jake chard
Jan Koch
Paul Kennard

Looking to integrate Gmail and HubSpot in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate Gmail with HubSpot

Build complex workflows, really fast

Build complex workflows, really fast

Handle branching, merging and iteration easily.
Pause your workflow to wait for external events.

Code when you need it, UI when you don't

Simple debugging

Your data is displayed alongside your settings, making edge cases easy to track down.

Use templates to get started fast

Use 1000+ workflow templates available from our core team and our community.

Reuse your work

Copy and paste, easily import and export workflows.

Implement complex processes faster with n8n

red iconyellow iconred iconyellow icon