Skip to content
Demonstration - not client work

HubSpot lead triage and AI reply drafts with n8n

Three n8n workflows on a HubSpot demo portal: new leads become triaged deals with an owner and a call-back task, client emails are logged, and an AI drafts a reply for a person to review.

  • HubSpot
  • n8n
  • OpenAI
A HubSpot deal board with stages from New lead to Planning and sample construction jobs sorted by urgency.
pipeline stages
8
custom contact properties
10
routing branches
4
sample clients
6

Problem

New leads sit until someone creates the contact, the deal and the task by hand, and replies to clients get written without the full history in front of the writer.

What was built

Three n8n workflows (lead triage, client email logging, AI reply draft), a HubSpot pipeline with 8 stages, 10 contact properties, 4 routing branches and six sample clients with past threads.

What it does

The demo models a construction company's CRM on a HubSpot demo portal, using sample records. It has three parts.

Lead triage. A new lead arrives by webhook. n8n creates or updates the HubSpot contact, opens a deal, picks the pipeline stage from four routing branches, assigns the owner, and creates a call-back task. If the same lead is submitted again, the workflow recognizes it and returns the existing deal instead of creating a second one.

Email logging. When a client email comes in, n8n logs it on the contact's timeline and keeps its own thread log, so the full history is available to the next step.

AI reply draft. For each incoming client email, an OpenAI model reads the thread and the deal, then writes a reply draft. The draft is saved with a "Review and send" task. A person decides what goes out.

What was built

  • 3 n8n workflows: lead triage (20 nodes), client email logging (19 nodes) and AI reply draft (17 nodes).
  • A HubSpot deal pipeline with 8 stages.
  • 10 custom contact properties.
  • 4 routing branches that set the stage and the task.
  • 6 seeded sample clients, each with a deal and a past email thread.

How it was tested

  • A test lead produced the contact, deal, stage, owner and task. All five checks passed, and the run took 1.8 seconds.
  • Posting the same lead twice returned a duplicate flag and the same deal id.
  • Email-to-draft ran for three sample clients in 5.4, 3.6 and 4.5 seconds, against a target of 30 seconds.
  • 14 n8n executions were recorded, all successful.
  • One of the three drafts contained two soft phrases the thread did not support. The review step exists to catch exactly that.

What it does not do

No email is ever sent: the AI writes a draft and creates a review task. The web form is not connected, the portal has one owner, and the records it works on are sample data.

  • It does not send email. Drafts and review tasks only, by design.
  • The web form is not connected; test leads were posted to the webhook directly.
  • The demo portal's API access did not allow reading email bodies, so n8n keeps the thread log itself.
  • Every route assigns the same owner, because the demo portal has one user.
  • The contacts, deals and emails created for this demo are sample records.
Next demoContact form AI lead qualifier in n8n

More demos

The sync audit with zero findings and the ops log of the four flows.

Lead-to-invoice sync in n8n with a sync audit

Four n8n workflows that carry a lead from an email into HubSpot, a project tool, a time tracker and a draft invoice, with retries, an error branch, and an audit that finds records the tools disagree on.

Start with a free automation audit

Email the founder to arrange a free 45-minute video call. We map your workflow, tools and bottlenecks, and you get a prioritized roadmap.

Michael replies within two business days.