An intelligent automation that reads incoming emails, understands their content using NLP, and associates each message with the right HubSpot deal; automatically creating a new deal when no match exists. The result is a CRM that stays accurate and up to date without manual data entry.
The Problem
Sales and support emails often arrive with no clear link to an existing deal. Reps waste time manually searching HubSpot, logging conversations against the wrong record, or letting deals slip through entirely because none was ever created.
The Approach
I built an event-driven pipeline that triggers on each inbound email, extracts key entities and intent with NLP, matches the email against existing HubSpot deals, and either associates it with the correct deal or creates a new one from the email context.
How It Works
Emails flow through an n8n workflow that orchestrates each step. Python services handle the NLP parsing; entity recognition, intent detection, and matching logic. HubSpot's API and workflows manage deal lookup, association, and automatic creation. AWS hosts the compute and supporting services for reliable, scalable execution.
Tech Stack
n8n for orchestration, Python and FastAPI for the NLP and matching logic, AWS for hosting and compute, and HubSpot plus HubSpot Workflows for CRM integration and automation.
Results
Emails are associated with the correct deal automatically, missing deals are created on the fly, and the sales pipeline reflects reality with far less manual upkeep.
Like this project
Posted Jul 21, 2026
AI NLP automation matching incoming emails to HubSpot deals, auto-creating deals when none exist. Built with n8n, Python, AWS & HubSpot workflows.