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:
The folder contains:
- Sample contact database (CSV)
- AutomatizationHelper template (CSV + Google Sheets)
- Detailed setup instructions (README)
Data Structure:
Contact Database Fields:
venue_name- Organization namecategory- booker/festival/media/playlistingemail_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 codeCATEGORY- Contact typeLATEST_SINGLE- Spotify/Apple Music linkLATEST_VIDEO- YouTube/Vimeo linkEPK- Electronic Press Kit URLSIGNATURE- HTML email signaturePROMPT- AI prompt for this categorySUBJECT- Email subject template
Setup Instructions:
Step 1: Prepare Your Data
- Download example files from the Google Drive folder
- Replace sample data with your real contacts and band information
- Customize AI prompts for your communication style
- Update signature with your contact details
Step 2: Configure APIs
- Set up Gmail OAuth2 credentials in n8n
- Configure Google Sheets API access
- Add OpenAI API key for content generation
Step 3: Import & Configure Workflow
- Import the workflow JSON
- Connect your credentials to respective nodes
- Update Google Sheets URL in AutomatizationHelper node
- Test with a small contact sample first
Step 4: Customize & Run
- Adjust AI prompts in AutomatizationHelper for your style
- Update contact categories as needed
- 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: xciklv@gmail.com
LinkedIn: https://www.linkedin.com/in/vaclavcikl/
Generate Personalized Promotion Emails with GPT-5 and Gmail Context Analysis
This n8n workflow automates the process of generating and sending personalized promotion emails. It leverages customer data from a Google Sheet, analyzes past email interactions from Gmail (or a local file for demonstration), and uses an OpenAI Chat Model to craft highly relevant promotional content. The workflow includes a human-in-the-loop step for approval before sending.
What it does
- Triggers Manually: The workflow is initiated manually.
- Loads Customer Data: Reads customer information (e.g., name, email, past purchases) from a specified Google Sheet.
- Loops Through Customers: Processes each customer's data individually.
- Retrieves Contextual Data:
- Option A (Gmail): Searches the user's Gmail account for past email interactions with the customer to gather context.
- Option B (Local File - for demonstration): If Gmail context retrieval fails or is not desired, it falls back to reading a predefined context from a local JSON file.
- Analyzes Context: Extracts relevant information from the retrieved email context (or local file content).
- Generates Personalized Promotion: Uses an OpenAI Chat Model (GPT-5, as per the directory name, though the JSON specifies
OpenAI Chat Model) to generate a personalized promotional email draft based on the customer's data and the analyzed context. - Parses Output: Extracts the structured email content (subject, body, etc.) from the AI's response.
- Human-in-the-Loop Approval: Presents the generated email draft for manual review and approval.
- Sends Email: If approved, sends the personalized promotion email via Gmail to the customer.
- Handles Rejections: If the email is not approved, it proceeds without sending.
Prerequisites/Requirements
- n8n Instance: A running n8n instance.
- Google Sheets Account: To store customer data.
- A Google Sheets credential configured in n8n.
- Gmail Account: To search for past interactions and send emails.
- A Gmail credential configured in n8n.
- OpenAI API Key: For the OpenAI Chat Model to generate email content.
- An OpenAI credential configured in n8n.
- Local File (Optional/Demonstration): A local JSON file named
customer-email-context.jsoncontaining sample email context, used if Gmail context retrieval is bypassed or fails.
Setup/Usage
- Import the Workflow:
- Download the provided JSON file.
- In your n8n instance, go to "Workflows" and click "New".
- Click the "Import from JSON" button and paste the workflow JSON or upload the file.
- Configure Credentials:
- Locate the "Google Sheets" node and select/create your Google Sheets credential.
- Locate the "Gmail" node (for context retrieval) and select/create your Gmail credential.
- Locate the "OpenAI Chat Model" node and select/create your OpenAI API key credential.
- Locate the "Gmail" node (for sending emails) and select/create your Gmail credential.
- Configure Google Sheets Node:
- Specify the "Spreadsheet ID" and "Sheet Name" where your customer data is located.
- Configure Gmail Context Retrieval (Optional):
- The workflow is set up to attempt Gmail context retrieval first. Ensure your Gmail credential has the necessary permissions.
- If you prefer to use the local file for context, you can disable the first "Gmail" node and ensure the "Read/Write Files from Disk" node is configured correctly.
- Configure Local File (Optional):
- If using the local file fallback, ensure a file named
customer-email-context.jsonis accessible by the n8n instance at the specified path (e.g.,/tmp/customer-email-context.jsonor adjust the path in the "Read/Write Files from Disk" node). This file should contain JSON data representing email context.
- If using the local file fallback, ensure a file named
- Activate the Workflow: Toggle the workflow to "Active" in the top right corner.
- Execute Manually: Click "Execute Workflow" to run it. The workflow will process your customer data, generate emails, and pause at the "If" node (acting as the human-in-the-loop approval) for each email.
- Approve/Reject Emails: When the workflow pauses, review the generated email content. You can then manually route the item through the "True" branch (to send) or "False" branch (to skip sending).
Related Templates
AI meeting summary & action item tracker with Notion, Slack, and Gmail
How it Works This workflow accepts meeting transcripts via webhook (Zoom, Google Meet, Teams, Otter.ai, or manual notes), immediately processing them through an intelligent pipeline that eliminates post-meeting admin work. The system parses multiple input formats (JSON, form data, transcription outputs), extracting meeting metadata including title, date, attendees, transcript content, duration, and recording URLs. OpenAI analyzes the transcript to extract eight critical dimensions: executive summary, key decisions with ownership, action items with assigned owners and due dates, discussion topics, open questions, next steps, risks/blockers, and follow-up meeting requirements—all returned as structured JSON. The intelligence engine enriches each action item with unique IDs, priority scores (weighing urgency + owner assignment + due date), status initialization, and meeting context links, then calculates a completeness score (0-100) that penalizes missing owners and undefined deadlines. Multi-channel distribution ensures visibility: Slack receives formatted summaries with emoji categorization for decisions (✅), action items (🎯) with priority badges and owner assignments, and completeness scores (📊). Notion gets dual-database updates—meeting notes with formatted decisions and individual task cards in your action item database with full filtering and kanban capabilities. Task owners receive personalized HTML emails with priority color-coding and meeting context, while Google Calendar creates due-date reminders as calendar events. Every meeting logs to Google Sheets for analytics tracking: attendee count, duration, action items created, priority distribution, decision count, completeness score, and follow-up indicators. The workflow returns a JSON response confirming successful processing with meeting ID, action item count, and executive summary. The entire pipeline executes in 8-12 seconds from submission to full distribution. --- Who is this for? Product and engineering teams drowning in scattered action items across tools Remote-first companies where verbal commitments vanish after calls Executive teams needing auditable decision records without dedicated note-takers Startups juggling 10+ meetings daily without time for manual follow-up Operations teams tracking cross-functional initiatives requiring accountability --- Setup Steps Setup time: 25-35 minutes Requirements: OpenAI API key, Slack workspace, Notion account, Google Workspace (Calendar/Gmail/Sheets), optional transcription service Webhook Trigger: Automatically generates URL, configure as POST endpoint accepting JSON with title, date, attendees, transcript, duration, recording_url, organizer Transcription Integration: Connect Otter.ai/Fireflies.ai/Zoom webhooks, or create manual submission form OpenAI Analysis: Add API credentials, configure GPT-4 or GPT-3.5-turbo, temperature 0.3, max tokens 1500 Intelligence Synthesis: JavaScript calculates priority scores (0-40 range) and completeness metrics (0-100), customize thresholds Slack Integration: Create app with chat:write scope, get bot token, replace channel ID placeholder with your meeting-summaries channel Notion Databases: Create "Meeting Notes" database (title, date, attendees, summary, action items, completeness, recording URL) and "Action Items" database (title, assigned to, due date, priority, status, meeting relation), share both with integration, add token Email Notifications: Configure Gmail OAuth2 or SMTP, customize HTML template with company branding Calendar Reminders: Enable Calendar API, creates events on due dates at 9 AM (adjustable), adds task owner as attendee Analytics Tracking: Create Google Sheet with columns for MeetingID, Title, Date, Attendees, Duration, ActionItems, HighPriority, Decisions, Completeness, UnassignedTasks, FollowUpNeeded Test: POST sample transcript, verify Slack message, Notion entries, emails, calendar events, and Sheets logging --- Customization Guidance Meeting Types: Daily standups (reduce tokens to 500, Slack-only), sprint planning (add Jira integration), client calls (add CRM logging), executive reviews (stricter completeness thresholds) Priority Scoring: Add urgency multiplier for <48hr due dates, owner seniority weights, customer impact flags AI Prompt: Customize to emphasize deadlines, blockers, or technical decisions; add date parsing for phrases like "by end of week" Notification Routing: Critical priority (score >30) → Slack DM + email, High (20-30) → channel + email, Medium/Low → email only Tool Integrations: Add Jira/Linear for ticket creation, Asana/Monday for project management, Salesforce/HubSpot for CRM logging, GitHub for issue creation Analytics: Build dashboards for meeting effectiveness scores, action item velocity, recurring topic clustering, team productivity metrics Cost Optimization: ~1,200 tokens/meeting × $0.002/1K (GPT-3.5) = $0.0024/meeting, use batch API for 50% discount, cache common patterns --- Once configured, this workflow becomes your team's institutional memory—capturing every commitment and decision while eliminating hours of weekly admin work, ensuring accountability is automatic and follow-through is guaranteed. --- Built by Daniel Shashko Connect on LinkedIn
AI-Powered automated news (stock, economy...) collector with expert comment
What is This Workflow? V2 (2026) available! An intelligent, fully automated news aggregation system that collects articles from multiple sources (RSS feeds + Google Search), uses AI to classify and summarize the most important stories, then delivers a professional HTML email report with expert commentary. --- Contact to customize this workflow for your business: me@nguyenthieutoan.com --- Use Cases: 📈 Financial Markets: Stock news, economic indicators, market analysis 📰 Industry News: Tech, healthcare, real estate, etc. 🌍 Regional Updates: Country-specific news, local events 🏢 Corporate Intelligence: Competitor monitoring, industry trends 🎓 Academic Research: Paper aggregation, research updates ⚡ Crisis Monitoring: Breaking news, emergency alerts Key Features: ✅ Multi-Source Collection: RSS feeds + Google Search API (expandable) ✅ AI Classification: Auto-categorizes articles by topic (e.g., stock market, economy) ✅ AI Summarization: Selects top 15 stories, groups by region, adds expert insights ✅ Professional Email: Finance-themed HTML design with structured tables ✅ Data Table Storage: Central repository with auto-cleanup (3-day retention) ✅ Duplicate Prevention: Link-based deduplication ✅ Cost Optimized: GPT-4.1 Nano for classification, Gemini Flash for summarization ✅ Fully Customizable: Topics, languages, sources, schedules, styling—all flexible --- How It Works News Collection Gather updates from multiple sources (RSS feeds, keyword searches). Standardize format (title, link, snippet, date, source, tag). Store in a central table with duplicate prevention. AI Processing & Analysis Classify articles into categories (e.g., Stock Market, Economy). Summarize top items per category and region. Add short expert-style commentary for context. Output structured JSON with title, content, insights, and links. Email Generation & Delivery Merge summaries into professional tables. Apply finance-themed design (Navy Blue, Gold, Green). Include header (date + “Daily Executive Briefing”) and footer attribution. Send via Gmail with HTML body and subject line including date. Requirements: n8n Version: 1.113.0+ (for Data Table feature), 2.4.0+ for Auto Create Data Table (or you need to create manually). APIs & Credentials: SerpAPI: For Google Search (free tier available) - if you need to use Google Search source. OpenAI API: GPT-4.1 Nano access Google Gemini API: Gemini Flash access Gmail OAuth2: For sending emails Optional: Custom RSS feeds (public, no auth required) --- Cost Optimization: API Usage per Day: SerpAPI: 2-4 searches (free tier: 100/month) OpenAI: ~50 classification calls (~$0.01) Gemini: ~2 summarization calls (~$0.005) Total: < $0.02/day (~$0.60/month) Cost Reduction Tips: Use free Gemini tier (2M tokens/day) Batch classification (reduce API calls) Adjust article limits (fewer = cheaper) Use Claude Haiku instead of GPT-4.1 Nano (even cheaper) --- Customization & Support: 🎁 FREE Workflow Customization Need to adapt this workflow for your specific use case? Contact the author for FREE basic customization: Change topics/categories/languages Adjust sources and schedules Modify email styling Simple logic changes Lifetime free updates and bug fixes 📧 Email: me@nguyenthieutoan.com 💼 Paid Advanced Support (~$15-30 USD) For complex customization + full setup + additional features: Multi-language support with auto-translation Advanced AI analysis (sentiment, trends, predictions) Integration with Slack/Discord/Teams Custom web dashboard Database integration (PostgreSQL, MongoDB) Webhook integrations Custom reporting formats (PDF, Slack cards, etc.) Author: Nguyen Thieu Toan (Jay Nguyen) n8n Profile: n8n.io/creators/nguyenthieutoan Status: n8n Verified Creator Website: nguyenthieutoan.com --- Version History: v2.0 (Current) Multi-source collection (RSS + Google Search) AI-powered classification & summarization Professional HTML email generation Data Table storage with auto-cleanup Fully customizable architecture --- Related Workflows: 🔗 Browse more workflows by Jay Nguyen: n8n.io/creators/nguyenthieutoan Similar Templates: Social Media Content Aggregator Competitor Monitoring System Research Paper Digest Generator Breaking News Alert System
Translate PDFs into multiple languages with Google Translate & ConvertAPI cost tracking
Description This n8n template automates PDF translation into 1 or 2 target languages while maintaining professional formatting. Users submit PDFs via web form and receive translated documents via email with preserved headings, paragraphs, and bullet points. Use Cases • International Business Contracts • Multilingual Product Documentation • Educational Content Distribution • Healthcare Patient Information for Diverse patient population • Marketing Campaign Materials What it does • Accepts PDF uploads via web form • Extracts and converts text to structured HTML • Translates using Google Translate API (20+ languages including Hindi, Telugu, Spanish, French, German, Chinese) • Converts to professional PDFs with ConvertAPI • Emails translated PDFs with cost breakdown • Tracks expenses in data table for analytics Set up • Configure Google Cloud Service Account (Translation API enabled) • Add ConvertAPI Query Auth credentials • Set up Gmail OAuth2 with send permissions • Create n8n Data Table named cost_tracking • Activate workflow and access form via webhook URL Requirements • Google Cloud account with Translation API • ConvertAPI account with credits • Gmail account for delivery • PDF files with selectable text (not scanned images) Customize • Edit CSS in "Prepare HTML" nodes for PDF styling • Update pricing in "Cost – Build record" node • Add languages in "Process Form Data" and form dropdown • Modify email template in Gmail nodes Support: Join n8n Discord or Community Forum