Generate personalized promotion emails with GPT-5 and Gmail context analysis
Ready for 3.0What this workflow does
This AI workflow has 19 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Gmail, OpenAI Chat Model and Google Sheets.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Contacts (Read/Write Files from Disk): reads a file from disk
- AutomatizationHelper (Google Sheets): uses Google Sheets
- Extract from File: extracts data from a file
- MatchingByLanguage (Merge): merges the data from its input branches
- Filter: keeps only the items that match a condition
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- PreviousMessagesByContact (Gmail): uses Gmail
- If: checks a condition and branches into true / false
- ConvertToText (Code): runs custom JavaScript code
- Default (Code): runs custom JavaScript code
…plus 4 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.
Nodes used (14)
- Manual Trigger
n8n-nodes-base.manualTrigger - Extract from File
n8n-nodes-base.extractFromFile - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Filter
n8n-nodes-base.filter - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Gmail
n8n-nodes-base.gmail - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Sheets
n8n-nodes-base.googleSheets - Read/Write Files from Disk
n8n-nodes-base.readWriteFile - Merge
n8n-nodes-base.merge - No Operation, do nothing
n8n-nodes-base.noOp - If
n8n-nodes-base.if
From the author
Description: This sophisticated workflow automates personalized email campaigns for musicians and band managers. The system processes contact databases, analyzes previous Gmail conversation history, and uses AI to generate contextually appropriate emails…