Skip to content
Updated November 26, 2026

HubSpot automation with n8n and AI agents

This page is for teams already on HubSpot that want new leads sorted, client emails logged and replies drafted without someone doing each step by hand.

In our builds HubSpot holds the contacts, deals, tasks and timeline, and n8n and AI agents do the triage, drafting and syncing around it through the HubSpot API. In our demos a new lead becomes a contact, a deal, an owner and a task, and AI-written replies are saved as drafts for a person to send.

The four demos below were built and tested on a HubSpot demo portal. For the wider picture see CRM automation.

What we build on HubSpot

Lead triage

A new lead becomes a contact and a deal in the right stage, with an owner and a call-back task.

Duplicate handling

A repeat submission returns the existing deal instead of creating a second one.

Email logging

Client emails are logged to the contact timeline, with a thread log kept alongside.

AI reply drafts

An AI model reads the thread and the deal and writes a draft, saved with a "Review and send" task.

Agents on new deals

An n8n AI agent that works each new deal: reads the history, drafts in Gmail, logs a note, sets the stage and creates the follow-up task.

Cross-system sync

A lead carried from HubSpot into project, time and invoicing steps, with an audit that lists mismatches. In our demo those three other systems were mocks.

A side panel for the sales team

An assistant beside the HubSpot tab that answers pipeline questions and makes changes only after a confirm.

Proof

Demonstrations on a HubSpot demo portal with sample data. None is client work.

What we have learned building on it

These notes come from our own demo builds on a free HubSpot portal.

01

Check API permissions before you design

Our demo access could not read email bodies, so the AI could not draft from HubSpot's own email log. The workflow keeps its own thread log instead. That decision is cheap at the start and expensive later.
02

Drafts live where your team sends from

We found no API for creating a draft in HubSpot's one-to-one email tool, so our agent saves the draft in Gmail and logs a note on the timeline. A second workflow completes the HubSpot task when the reply appears in Sent mail.
03

A poll can stand in for a trigger

On the free portal we had no way for HubSpot to call our workflow when a deal was created, so a one-minute poll does it. The agent itself ran in 16 to 21 seconds; the 35 to 72 seconds from new deal to finished run includes the wait for the poll.
04

Guard the agent's reach during testing

Our agent workflow has a guard node that lets through only sample addresses, one test address of our own, and one pipeline.
05

Shared portals need care

Seed data and tests should be scoped to their own records, with a read-back after every write.

For a wider release check on lead-to-appointment flows, see the AI appointment-setting production checklist. Its examples come from our GoHighLevel demos; apply the same error and escalation questions to a HubSpot workflow before it goes live.

When HubSpot is not the right place to build

If you want the chatbot, calendar, texting and pipeline in one product, look at GoHighLevel automation. If the job is mostly between other tools, start with n8n workflow automation.

Common questions

Do we need a paid HubSpot plan?

Not necessarily. Our demos run on a free HubSpot portal, with n8n doing the triggering and routing. Which plan you need depends on what you want HubSpot itself to trigger.

Will the AI send emails from our HubSpot?

No. In our builds the AI saves a draft and creates a review task. A person reads it and sends it.

Can it read our existing email history?

Only if the access we are given includes permission to read email content. Our demo portal's access did not, so the workflow kept its own thread log. Permissions are the first thing to check.

Why n8n instead of HubSpot workflows?

Use HubSpot's own workflows when they cover the job. We reach for n8n when the workflow calls an AI model, needs retries and error handling, or connects HubSpot to several other systems.

Ask for a free automation audit

Share your HubSpot screen on a free 45-minute video call. We will look at how a deal moves today and tell you what we would automate first.

Michael replies within two business days.