← All N8N workflows
AI & researchAgentExecute Workflow TriggerFilterGmailGoogle Calendar Tool

Set your data and your company's

Configured with Agent, Execute Workflow Trigger, Filter, Gmail, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerWebhookWebhookTransformTry AgainEdit FieldsTransformSuccessEdit FieldsAI & modelsCalendar AgentAgentIntegrationCreate Event withAttendeeGoogle Calendar ToolIntegrationCreate EventGoogle Calendar ToolIntegrationGet EventsGoogle Calendar ToolIntegrationDelete EventGoogle Calendar ToolIntegrationUpdate EventGoogle Calendar ToolTriggerWhen Executed byAnother WorkflowExecute Workflow TriggerAI & modelsOpenAI Chat Model2OpenAI Chat ModelSubworkflowcalendarAgentTool WorkflowTransformStructured OutputParserOutput Parser StructuredWeb / APIGet list of ownersHTTP RequestTransformSplit Out ownersSplit OutRoutingGet current ownerFilterTriggerHubSpot TriggerHubspot TriggerTransformEnter your company datahereEdit FieldsRoutingIf a contact is createdIfIntegrationGet all info about thecontactHubspotAI & modelsWrite a personalizedmessageAgentMessagingSend the messageGmailIntegrationSet owner to contactHubspotTransformTransforms markdown toHTMLMarkdownAI & modelsOpenAI ModelOpenAI Chat Model

Node categories in this workflow

  • Trigger
  • Transform
  • AI & models
  • Integration
  • Subworkflow
  • Web / API
  • Routing
  • Messaging

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
WebhookTriggerWebhookSee node parameters
Try AgainTransformEdit FieldsSee node parameters
SuccessTransformEdit FieldsSee node parameters
Calendar AgentAI & modelsAgentSee node parameters
Create Event with AttendeeIntegrationGoogle Calendar ToolSee node parameters
Create EventIntegrationGoogle Calendar ToolSee node parameters
Get EventsIntegrationGoogle Calendar ToolgetAll
Delete EventIntegrationGoogle Calendar Tooldelete
Update EventIntegrationGoogle Calendar Toolupdate
When Executed by Another WorkflowTriggerExecute Workflow TriggerSee node parameters
OpenAI Chat Model2AI & modelsOpenAI Chat ModelSee node parameters
calendarAgentSubworkflowTool WorkflowSee node parameters
Structured Output ParserTransformOutput Parser StructuredSee node parameters
Get list of ownersWeb / APIHTTP RequestSee node parameters
Split Out ownersTransformSplit OutSee node parameters
Get current ownerRoutingFilterSee node parameters
HubSpot TriggerTriggerHubspot TriggerSee node parameters
Enter your company data hereTransformEdit FieldsSee node parameters
If a contact is createdRoutingIfSee node parameters
Get all info about the contactIntegrationHubspotget
Write a personalized messageAI & modelsAgentSee node parameters
Send the messageMessagingGmailSee node parameters
Set owner to contactIntegrationHubspotSee node parameters
Transforms markdown to HTMLTransformMarkdownSee node parameters
OpenAI ModelAI & modelsOpenAI Chat ModelSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • gmailOAuth2
  • googleCalendarOAuth2Api
  • hubspotDeveloperApi
  • hubspotOAuth2Api
  • openAiApi

Workflow notes

What does it do?

What does it do?

Objective:

Streamline the onboarding process for new customers, ensuring they receive all necessary resources and support. Trigger: Set a webhook trigger or a CRM trigger (like HubSpot or Salesforce) for when a new customer is added.

Send Welcome Email: Use the Gmail or SMTP node to send a personalized welcome email to the customer.

Schedule a Welcome Call: Use the Calendar node (Google Calendar) to automatically create a calendar event for a welcome call.

Assign a CSM: Use the CRM node (like HubSpot) to assign the new customer to a dedicated CSM.

How to Set a Webhook in n8n and HubSpot

How to Set a Webhook in n8n and HubSpot

1. Set Up a Webhook in n8n

Step 1: Create a New Workflow

  • Go to your n8n dashboard.
  • Click on "New Workflow."

Step 2: Add the Webhook Node

  • Click on the “+” icon to add a new node.
  • Search for “Webhook” and select it.
  • Set the Webhook Method (usually POST).
  • Define the Webhook URL path, for example, /hubspot-webhook.
  • Set the "Response Mode" (e.g., "On Received").
  • Save the workflow.

Step 3: Set Webhook URL

  • Copy the Webhook URL generated by n8n. It should look something like:https://your-n8n-domain/webhook/hubspot-webhook

  • Ensure the workflow is active.


2. Set Up a Webhook in HubSpot

Step 1: Log in to HubSpot

  • Go to HubSpot Developer Account (required for webhook setup).
  • Navigate to "Settings" > "Integrations" > "Webhooks."

Step 2: Create a New Webhook Subscription

  • Click “Create Webhook” or “Add Webhook” if this is your first one.
  • Select the events you want to track (e.g., contact creation, form submission).
  • Set the Webhook URL as the n8n Webhook URL you copied earlier.
  • Choose “POST” as the request method.
  • Set the Authentication if needed (you can set a secret or use OAuth).

Step 3: Test the Webhook

  • Use the “Test Webhook” feature in HubSpot to send a test request.
  • Switch to n8n and ensure the webhook is triggering properly.

3. Process the Data in n8n

  • After the webhook is triggered in n8n, you will see the data sent by HubSpot.
  • You can now add additional nodes to process the data (e.g., save to database, send email, perform actions in another app).

4. Make the Workflow Active

  • Once you are done configuring, make sure the workflow is set to “Active.”
  • This will allow it to receive live data from HubSpot.
Set your data and your company's

Set your data and your company's

The sender_email you set here has to be the same as the one you use in hubspot

Calendar tool

Calendar tool

This part has been borrowed from the excellent Nate Herk youtube channel

Email writer

Email writer

  • This agent writes a personalized Email
  • Uses the calendar Agent tool to create an appointmenton an empty slot. Feel free to personalize the prompt
Contact me

Contact me

  • If you need any modification to this workflow
  • if you need some help with this workflow
  • Or if you need any workflow in n8n, Make, or Langchain / Langgraph

Write to me: user@example.com

Take a look at my others workflows here

Set your data and your company's

Set your data and your company's

Purpose and structure

This folder contains the Set your data and your company's workflow. Its executable nodes use agent, executeWorkflowTrigger, filter, gmail, googleCalendarTool, httpRequest, hubspot, hubspotTrigger, if, lmChatOpenAi, markdown, outputParserStructured, set, splitOut, toolWorkflow, webhook. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Webhook, When Executed by Another Workflow, HubSpot Trigger

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Hubspot/0920_HubSpot_Splitout_Create_Webhook.json MIT; preserve source notices.

More in AI & research