Back to Templates

Automate Lead Follow-ups with GPT-4o mini Analysis for Gmail, HubSpot, and Slack

Created by

Created by: Meak || meak

Meak

Last update

Last update 6 days ago

Share


Gmail Lead Reply Analyzer → HubSpot Task + Slack Alert

Most sales teams read every email, guess if it’s important, and tell teammates manually.

This workflow does it automatically: check intent and sentiment with AI, create follow-up tasks, send Slack alerts, and save everything to Google Sheets.

Benefits

  • AI checks sentiment, intent, urgency, and priority
  • Creates HubSpot tasks only if follow-up is needed
  • Sends Slack message with lead summary
  • Logs all results to Google Sheets for tracking
  • Runs 24/7 with no manual sorting

How It Works

  1. Gmail trigger watches a label for new replies
  2. Workflow extracts sender, subject, and message
  3. AI analyzes message and returns: sentiment, intent, urgency, next step
  4. Code step cleans result, adds date, and checks if follow-up is needed
  5. If follow-up = yes → create HubSpot task, send Slack alert, log to Sheets
  6. If follow-up = no → just log to Sheets

Who Is This For

  • Sales teams getting many leads by email
  • Founders who handle leads themselves
  • Agencies needing clear and fast lead triage

Setup

  • Connect Gmail (choose or create label)
  • Add OpenAI API key (model: GPT-4o mini)
  • Connect HubSpot (App Token for tasks)
  • Connect Slack (channel for alerts)
  • Connect Google Sheets (Spreadsheet + Tab)
  • Optional: change how urgency/priority is scored in the code

ROI & Monetization

  • Save 3–6 hours per week on email sorting
  • Answer faster and close more deals
  • Sell as $1k–$3k/month “inbox automation” service

Strategy Insights

In the full walkthrough, I show how to:

  • Make sure AI always returns valid JSON
  • Adjust what counts as a follow-up lead
  • Format Slack messages for quick reading
  • Use Google Sheets as a simple dashboard

Check Out My Channel

For more AI automation systems that get real results, check out my YouTube channel where I share exactly how I build automation workflows, sell high-value services, and scale to $20k+ monthly revenue.