Automated marketing campaign email system with GPT-4 and HubSpot customer tracking
Ready for 3.0What 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).
- Get customers (Google Sheets): uses Google Sheets
- Get campaign (Google Sheets): uses Google Sheets
- Don't email on weekends (Filter): keeps only the items that match a condition
- Get message histories (Data table): uses Data table
- Filter: keeps only the items that match a condition
- If campaign does not exist (Data table): uses Data table
- Get new campaign (Data table): uses Data table
- Update customer's reply (Data table): uses Data table
- Customer information (Code): runs custom JavaScript code
- Insert new campaign (Data table): uses Data table
…plus 24 more steps. See the full node list below.
Services it uses
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)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Filter
n8n-nodes-base.filter - AI Agent
@n8n/n8n-nodes-langchain.agent - Data table
n8n-nodes-base.dataTable - Code
n8n-nodes-base.code - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Gmail
n8n-nodes-base.gmail - Gmail Trigger
n8n-nodes-base.gmailTrigger - OpenAI
@n8n/n8n-nodes-langchain.openAi - Google Sheets
n8n-nodes-base.googleSheets - Google Calendar
n8n-nodes-base.googleCalendar - HubSpot
n8n-nodes-base.hubspot
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…