Qualify chat leads and create HubSpot companies with DeepSeek and Google Calendar

Go to Workflow
0 views
Built by Jason Wang Jason Wang
Created on October 15, 2026

Description

Quick Overview
This workflow receives chat messages, uses a DeepSeek-powered AI Agent to decide whether the message indicates interest in automation workflows, creates a Company in HubSpot when relevant, and then schedules a Google Calendar follow-up event using the extracted company details.

How it works
Receives an incoming chat message through the public chat trigger.
Uses a DeepSeek chat model with conversation memory to analyze the message and decide whether it relates to interest in n8n workflows or enterprise automation.
If relevant, creates a Company record in HubSpot with the company details extracted from the chat; otherwise it replies with “sorry, I don't know”.
Checks whether the AI Agent response contains the phrase “Company Created in HubSpot” to determine whether to proceed.
Extracts the company JSON object from the AI Agent’s markdown response and marks the run as successful.
Creates a follow-up Google Calendar event for the next day, using the company name in the event summary.

Setup
Configure HubSpot OAuth2 credentials with permission to create Company records.
Add DeepSeek API credentials for the DeepSeek Chat Model used by the AI Agent.
Add Google Calendar OAuth2 credentials and select the target calendar for follow-up events.
Copy the chat trigger URL and use it in your chat client or n8n chat UI, and adjust the AI Agent prompt and HubSpot company fields to match the data you want to capture.

This workflow was created by Jason Wang and shared publicly on the n8n community template library. n8nFind indexes it for discovery — the workflow remains the property of its original creator.

Nodes Used (5)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
DeepSeek Chat Model
@n8n/n8n-nodes-langchain.lmChatDeepSeek
Google Calendar
n8n-nodes-base.googleCalendar
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow