Templates / Predict customer churn with AI analysis of HubSpot and Google Sheets data

Predict customer churn with AI analysis of HubSpot and Google Sheets data

Ready for 3.0

by PollupAI ✓ · 1,866 views · created 2025-10-26 · CRM, AI Summarization

Ready 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 23 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects HubSpot, OpenAI Chat Model, MCP Client and HTTP Request and 1 more.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).

  1. Code: runs custom JavaScript code
  2. HubSpot: get many (deal)
  3. Loop: For Each Ticket (Split Out): splits a list into separate items
  4. Start Loop: For Each Deal (Loop Over Items (Split in Batches)): loops over the items in batches
  5. AI: Analyze Ticket Sentiment (Sentiment Analysis): scores sentiment with AI, with model: Config: Set LLM for Agent & Chains
  6. Set: Isolate Current Deal ID Export to Sheets (Edit Fields (Set)): sets 1 field: dealId
  7. Merge: merges the data from its input branches
  8. AI Agent: runs an AI agent, with model: Config: Set LLM for Agent & Chains; 3 tools (Tool: Get HubSpot Data, Tool: Calculate Sentiment Score, Tool: Get Feature Usage from Sheets); output parser: AI: Structure Agent's Findings Export to Sheets
  9. Code: runs custom JavaScript code
  10. Code: runs custom JavaScript code

…plus 5 more steps. See the full node list below.

Services it uses

HubSpotOpenAI Chat ModelMCP ClientHTTP RequestGoogle Sheets

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 (19)

From the author

Who it’s for Built for Customer Success and Account Management teams focused on proactive retention. This workflow helps you automatically identify at-risk customers – before they churn – by combining CRM, usage, and sentiment data into one actionable alert.…

Excerpt from PollupAI's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.