1οΈβ£ Capture & Normalize Gmail Lead Responses
2οΈβ£ Analyze Lead Message with AI for Sentiment, Intent & Priority
3οΈβ£ Parse AI Output and Determine Follow-Up Needs
4οΈβ£ Automate Follow-Up Actions in HubSpot, Slack, and Google Sheets
π οΈ Step-by-Step Breakdown (Node View)
STEP 1 β Capture & Normalize Gmail Leads
Node 1: Gmail: New Lead Response β Monitors Gmail every minute for new lead responses with a specific label.
Node 2: Check if Data Exists β Ensures data is present before continuing.
Node 3: Normalize Gmail Data β Standardizes email, subject, message, source, and timestamp for consistent processing.
STEP 2 β Analyze Lead with AI
Node 4: Analyze Lead Response (AI) β Uses a custom AI prompt to analyze sentiment, intent, urgency, next action, and priority.
Node 5: OpenAI Chat Model β Runs the analysis using GPT-4o-mini.
Node 6: Parse AI Analysis Results β Cleans AI output, merges with original email data, and adds flags like needsFollowUp and isHighPriority.
STEP 3 β Evaluate Follow-Up Needs
Node 7: Needs Follow-Up? β Checks if AI recommends action (e.g., call, email, demo). If yes, triggers the automation sequence.
STEP 4 β Automate Follow-Up Actions
Node 8: HubSpot: Create Follow-up Task β Creates a sales task in HubSpot for tracking and engagement.
Node 9: Slack: Notify Sales Team β Sends lead insights (summary, email, priority, urgency, date) to the sales team channel.
Node 10: Log to Google Sheets β Records all lead data and AI analysis into a Google Sheet for ongoing tracking.
π‘ Why is this powerful?
β Automatically prioritizes and categorizes leads with AI
β Ensures no follow-up tasks are missed
β Centralizes tracking in Google Sheets for visibility
β Keeps sales teams aligned via Slack updates
β Saves hours of manual work and accelerates response times
Need help with your n8n? Get in Touch!
Your inquiry could not be saved. Please try again.