Skip to main content

Generate personalized promotion emails with GPT-5 and Gmail context analysis

Workflow preview

Workflow preview
100%
Generate personalized promotion emails with GPT-5 and Gmail context analysis preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Description: This sophisticated workflow automates personalized email campaigns for musicians and band managers. The system processes contact databases, analyzes previous Gmail conversation history...

Best for

  • Lead Nurturing automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.extractfromfile, n8n-nodes-base.splitinbatches, n8n-nodes-base.filter, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.gmail, @n8n/n8n-nodes-langchain.lmchatopenai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Václav Čikl.

Original n8n.io source

1.1 Workflow description

Title
Generate personalized promotion emails with GPT-5 and Gmail context analysis
Workflow name
Generate personalized promotion emails with GPT-5 and Gmail context analysis

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 tailored to different contact categories (venues, festivals, media, playlists).

Key Features:

  • Multi-category support: Bookers, festivals, media, playlist curators
  • Conversation context analysis: Maintains relationship history from Gmail
  • AI-powered personalization: Custom prompts for each contact type
  • Multi-language support: Localized content and prompts
  • Gmail integration: Automatic draft creation with signatures
  • Bulk processing: Handle hundreds of contacts efficiently

Use Cases:

  • Album/single promotion campaigns
  • Tour booking automation
  • Festival submission management
  • Playlist pitching campaigns
  • Media outreach automation
  • Venue relationship management

Perfect For:

  • Independent musicians and bands
  • Music managers and booking agents
  • Record labels with multiple artists
  • PR agencies in music industry
  • Festival organizers (for artist outreach)

Required Setup:

1. Credentials & APIs:

  • Gmail OAuth2 (read messages + create drafts permissions)
  • Google Sheets API (for AutomatizationHelper configuration)
  • OpenAI API or compatible LLM (for content generation)

2. Required Files:

  • Contact Database (CSV): Your venue/media/festival contacts
  • AutomatizationHelper (Google Sheets): Campaign configuration, prompts, links

3. Example Data:

📁 Download Example Files

The folder contains:

  • Sample contact database (CSV)
  • AutomatizationHelper template (CSV + Google Sheets)
  • Detailed setup instructions (README)

Data Structure:

Contact Database Fields:

  • venue_name - Organization name
  • category - booker/festival/media/playlisting
  • email_1 - Primary email (required)
  • email_2 - Secondary email (optional, for CC)
  • active - active/inactive (for filtering)
  • language - EN/DE/etc. (for localization)

AutomatizationHelper Fields:

  • LANGUAGE - Language code
  • CATEGORY - Contact type
  • LATEST_SINGLE - Spotify/Apple Music link
  • LATEST_VIDEO - YouTube/Vimeo link
  • EPK - Electronic Press Kit URL
  • SIGNATURE - HTML email signature
  • PROMPT - AI prompt for this category
  • SUBJECT - Email subject template

Setup Instructions:

Step 1: Prepare Your Data

  1. Download example files from the Google Drive folder
  2. Replace sample data with your real contacts and band information
  3. Customize AI prompts for your communication style
  4. Update signature with your contact details

Step 2: Configure APIs

  1. Set up Gmail OAuth2 credentials in n8n
  2. Configure Google Sheets API access
  3. Add OpenAI API key for content generation

Step 3: Import & Configure Workflow

  1. Import the workflow JSON
  2. Connect your credentials to respective nodes
  3. Update Google Sheets URL in AutomatizationHelper node
  4. Test with a small contact sample first

Step 4: Customize & Run

  1. Adjust AI prompts in AutomatizationHelper for your style
  2. Update contact categories as needed
  3. Run workflow - drafts will be created in Gmail for review

Tips:

  • Start small: Test with 5-10 contacts first
  • Review drafts: Always review AI-generated content before sending
  • Update regularly: Keep your AutomatizationHelper current with latest releases
  • Monitor responses: Track which prompts work best for different categories
  • Language mixing: You can have contacts in multiple languages

Important Notes:

  • Emails are created as Gmail drafts - manual review recommended
  • Respects Gmail API rate limits automatically
  • Conversation history analysis works best with existing email threads
  • HTML signatures are automatically added (Gmail API limitation workaround)
  • Handles multiple languages simultaneously
  • Maintains conversation context across campaigns
  • Generates unique content for each contact

Template Author:

Questions or need help with setup?

Email: [email protected]
LinkedIn: https://www.linkedin.com/in/vaclavcikl/

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Extract from File

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 3 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 4 - Filter

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 5 - ConvertToText

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Basic LLM Chain

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 7 - SystemPrompt

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Create a draft

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 9 - PreviousMessagesByContact

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 10 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 11 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 12 - AutomatizationHelper

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 13 - Contacts

Type / Role
n8n-nodes-base.readWriteFile - readWriteFile
Config choices
Version 1

Block 14 - MatchingByLanguage

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 15 - ProcessingOutput

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - No Operation, do nothing

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 17 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 18 - Default

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - OpenAI Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 20 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 27 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Generate personalized promotion emails with GPT-5 and Gmail context analysis
Complexity advanced
Nodes 27
Categories Lead Nurturing, AI Chatbot
Author Václav Čikl
Published 23 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8884/8884.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate personalized promotion emails with GPT-5 and Gmail context analysis do?

Description: This sophisticated workflow automates personalized email campaigns for musicians and band managers. The system processes contact databases, analyzes previous Gmail conversation history...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Nurturing, AI Chatbot use case.