AutomationFlowsData & Sheets › Demo: Create a New Record in Google Sheets When Something Happens in Hubspot

Demo: Create a New Record in Google Sheets When Something Happens in Hubspot

DEMO: Create a new record in Google Sheets when something happens in Hubspot. Uses hubspotTrigger, googleSheets. Event-driven trigger; 5 nodes.

Event trigger★★☆☆☆ complexity5 nodesHubSpot TriggerGoogle Sheets
Data & Sheets Trigger: Event Nodes: 5 Complexity: ★★☆☆☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "DEMO: Create a new record in Google Sheets when something happens in Hubspot",
  "nodes": [
    {
      "parameters": {
        "eventsUi": {
          "eventValues": [
            {}
          ]
        },
        "additionalFields": {}
      },
      "id": "78395fdf-2e8b-4064-a102-c1c0335e0d94",
      "name": "HubSpot Trigger",
      "type": "n8n-nodes-base.hubspotTrigger",
      "typeVersion": 1,
      "position": [
        580,
        320
      ],
      "notesInFlow": true,
      "notes": "On Contact Created"
    },
    {
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{ $json['identity-profiles'][0].identities[0].value }}",
              "operation": "contains",
              "value2": "@gmail"
            }
          ]
        }
      },
      "id": "3888d918-c140-47a1-8024-d50fddb3f8f0",
      "name": "IF",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        820,
        320
      ],
      "notesInFlow": true,
      "notes": "Is Gmail Email?"
    },
    {
      "parameters": {},
      "id": "416a8876-f496-499c-a089-aad243daabc6",
      "name": "Is Gmail, Don't Add to Sheet",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        1140,
        240
      ]
    },
    {
      "parameters": {
        "content": "## Demo: Creating Google Sheets records when something happens in HubSpot\nThis workflow runs each time a new Contact is added in HubSpot. It filters out Contacts with Gmail email addresses then pushes the remaining new Contacts to [this Google Sheet](https://docs.google.com/spreadsheets/d/1GeWRcu5cvNVA-0hpHZHtatjnFtyunbgWUgRur5uT08A/edit?usp=sharing).",
        "height": 160.1450000000002,
        "width": 480.31999999999596
      },
      "id": "cf69cda9-ba96-468f-990c-6c3ad5242053",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        520,
        100
      ]
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "1GeWRcu5cvNVA-0hpHZHtatjnFtyunbgWUgRur5uT08A",
          "mode": "list",
          "cachedResultName": "New HubSpot Contacts",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1GeWRcu5cvNVA-0hpHZHtatjnFtyunbgWUgRur5uT08A/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "New Contacts",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1GeWRcu5cvNVA-0hpHZHtatjnFtyunbgWUgRur5uT08A/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Name": "={{ $json.properties.num_unique_conversion_events.versions[0]['source-type'] }}",
            "Email": "={{ $json.properties.num_unique_conversion_events.versions[0]['source-label'] }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "Name",
              "displayName": "Name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Email",
              "displayName": "Email",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Sync timestamp",
              "displayName": "Sync timestamp",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            }
          ]
        },
        "options": {}
      },
      "id": "1e4084bd-b7fb-41f1-a340-1414ef134468",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4,
      "position": [
        1140,
        440
      ],
      "notesInFlow": true,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "notes": "Append new contact to sheet"
    }
  ],
  "connections": {
    "HubSpot Trigger": {
      "main": [
        [
          {
            "node": "IF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF": {
      "main": [
        [
          {
            "node": "Is Gmail, Don't Add to Sheet",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "4748dbbc-75dd-400e-98d1-41bbd82c7208",
  "id": "cGYp8fpTdh3LAgP5",
  "tags": [
    {
      "createdAt": "2023-09-21T09:36:34.726Z",
      "updatedAt": "2023-09-21T09:36:52.231Z",
      "id": "vh6ctEIEfFztmSF2",
      "name": "release-template-version"
    }
  ]
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

DEMO: Create a new record in Google Sheets when something happens in Hubspot. Uses hubspotTrigger, googleSheets. Event-driven trigger; 5 nodes.

Source: https://github.com/automatos-trade/automatos-n8n/blob/master/cypress/fixtures/Onboarding_workflow.json — original creator credit. Request a take-down →

More Data & Sheets workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Data & Sheets

This workflow triggers when a HubSpot deal stage changes to Closed Won and automatically generates an invoice. It collects deal and contact data, builds a styled invoice, converts it into a PDF, and s

HubSpot Trigger, HTTP Request, Google Sheets +4
Data & Sheets

This n8n workflow pulls campaign data from Google Sheets and creates two pivot tables automatically each time it runs. In n8n, go to Credentials → click New Credential Select Google Sheets OAuth2 API

Google Sheets
Data & Sheets

This n8n workflow automates the collection and processing of trip feedback data using Google Sheets as the backend. When new users are added to the system, they automatically receive feedback forms vi

Form Trigger, Google Sheets, Email Send +1
Data & Sheets

Stop letting great ideas vanish in your Notes app. This workflow transforms your voice memos into polished blog posts, LinkedIn articles, or newsletters — automatically.

Voice To Text, Hub Gpt, Html To Image +2
Data & Sheets

📺 Full walkthrough video: https://youtu.be/uk-mJRgYnfs

Hunter, Google Sheets