Update Hubspot engagement by parsing inbox mail with AI
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 9 nodes and runs when a new email arrives over IMAP. Along the way it connects HubSpot and OpenAI Chat Model.
How it runs
Trigger: When a new email arrives over IMAP.
- Parse the mail with AI (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Set the output Json
- Search for the contact via email (HubSpot): search
- contact exists? (If): checks a condition and branches into true / false
- Edit Fields (Edit Fields (Set)): sets 1 field: vid
- Creates contact (HubSpot): uses HubSpot
- Creates an email engagement (HubSpot): work with engagement
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- HubSpot
n8n-nodes-base.hubspot - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Email Trigger (IMAP)
n8n-nodes-base.emailReadImap - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set
From the author
Who is this for? This workflow is designed for Customer Success Managers (CSM), sales, support, or marketing teams using HubSpot CRM who want to automate customer engagement tracking when new emails arrive. It’s ideal for businesses looking to streamline CRM…