Templates / Automated marketing campaign email system with GPT-4 and HubSpot customer tracking

Automated marketing campaign email system with GPT-4 and HubSpot customer tracking

Ready for 3.0

by Satoshi ✓ · 172 views · created 2025-12-16 · Social Media, AI Chatbot

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 39 nodes and runs on a schedule (every day) (plus 2 other triggers). Along the way it connects OpenAI Chat Model, Gmail, OpenAI and Google Sheets and 2 more.

How it runs

Trigger: On a schedule (every day) (plus 2 other triggers).

  1. Get customers (Google Sheets): uses Google Sheets
  2. Get campaign (Google Sheets): uses Google Sheets
  3. Don't email on weekends (Filter): keeps only the items that match a condition
  4. Get message histories (Data table): uses Data table
  5. Filter: keeps only the items that match a condition
  6. If campaign does not exist (Data table): uses Data table
  7. Get new campaign (Data table): uses Data table
  8. Update customer's reply (Data table): uses Data table
  9. Customer information (Code): runs custom JavaScript code
  10. Insert new campaign (Data table): uses Data table

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

Services it uses

OpenAI Chat ModelGmailOpenAIGoogle SheetsGoogle CalendarHubSpot

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.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).

Nodes used (12)

From the author

Overview This workflow automates customer outreach for marketing campaigns, including customer prioritization, AI-generated emails, automated sending, reply tracking, and meeting scheduling. --- How It Works 1. Data Synchronization Customer and campaign data…

Excerpt from Satoshi'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.