Back to Catalog

Personalized sales outreach with Apollo, GPT, and Gmail automation

Tamas DemeterTamas Demeter
406 views
2/3/2026
Official Page

This n8n template shows you how to turn outbound sales into a fully automated machine: scrape verified leads, research them with AI, and fire off personalized cold emails while you sleep.

Use cases are simple: scale B2B lead gen without hiring more SDRs, run targeted outreach campaigns that don’t feel generic, and give founders or agencies a repeatable system that books more calls with less effort.

Good to know

  • At time of writing, each AI call may incur costs depending on your OpenAI plan.
  • This workflow uses Apollo/Apify for lead scraping, which requires an active token.
  • Telegram approval flow is optional but recommended for quality control.

How it works

  • Define your ICP (role, location, industry) in the workflow.
  • Generate Apollo search URLs and scrape verified contacts.
  • AI enriches leads with personal + company research.
  • Hormozi-style cold emails are generated and queued for approval.
  • Approve drafts in Telegram, then Gmail automatically sends them out.

How to use

  • Start with the included Schedule Trigger or replace with a Webhook/Form trigger.
  • Adjust ICP settings in the Set node to fit your target audience.
  • Test with a small batch of leads before scaling to larger runs.

Requirements

  • Google Sheets, Docs, Drive, and Gmail connected to n8n
  • Apollo/Apify account and token
  • OpenAI API key
  • Telegram bot for approvals

Customising this workflow

  • Swap Apollo scraping with another data source if needed.
  • Adapt the AI prompt for a different email tone (formal, friendly, etc.).
  • Extend with a CRM integration to sync approved leads and outreach results.

Personalized Sales Outreach with Apollo, GPT, and Gmail Automation

This n8n workflow automates the process of generating personalized sales outreach emails using data from Google Sheets, enriching it with Apollo.io, crafting tailored messages with OpenAI's GPT models, and sending them via Gmail.

It streamlines the initial stages of sales outreach, allowing sales teams to focus on more strategic tasks by automating the generation of highly personalized first contact emails.

What it does

  1. Triggers on Schedule: The workflow starts on a predefined schedule (e.g., daily, weekly).
  2. Reads Leads from Google Sheets: It fetches a list of leads (e.g., prospects, companies) from a specified Google Sheet.
  3. Limits Processing: It processes a limited number of leads per run to manage API usage and prevent overwhelming the system.
  4. Enriches Data with Apollo.io: For each lead, it uses the Apollo.io API to find additional company and contact information, such as company description, industry, and contact details.
  5. Generates Personalized Email Content (GPT-3.5-turbo):
    • It constructs a prompt using the enriched data (company name, description, prospect's name, role).
    • It sends this prompt to OpenAI's GPT-3.5-turbo model to generate a personalized email body.
  6. Generates Personalized Subject Line (GPT-3.5-turbo):
    • It constructs a separate prompt using the generated email body and lead information.
    • It sends this prompt to OpenAI's GPT-3.5-turbo model to generate a compelling subject line.
  7. Sends Personalized Emails via Gmail: For each lead, it uses the generated subject line and email body to send a personalized email through Gmail.
  8. Logs Activity (Optional - Google Drive): Although not fully configured in the provided JSON, the presence of a Google Drive node suggests a potential step for logging or storing generated content or outreach results.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running n8n instance.
  • Google Sheets Account: A Google Sheets spreadsheet containing your lead data (e.g., company names, prospect names, roles).
  • Apollo.io Account & API Key: For enriching lead data.
  • OpenAI Account & API Key: For accessing GPT-3.5-turbo to generate email content and subject lines.
  • Gmail Account: Configured as a credential in n8n for sending emails.

Setup/Usage

  1. Import the Workflow: Download the provided JSON and import it into your n8n instance.
  2. Configure Credentials:
    • Set up your Google Sheets credential to connect to your lead spreadsheet.
    • Configure an HTTP Request credential for Apollo.io with your API key.
    • Set up your OpenAI credential with your API key.
    • Configure your Gmail credential.
  3. Update Google Sheets Node (ID: 18):
    • Specify the Spreadsheet ID and Sheet Name where your lead data is located.
    • Ensure the column names in your sheet match the data expected by the subsequent nodes (e.g., "Company Name", "Prospect Name", "Prospect Role").
  4. Adjust Limit Node (ID: 1237): Modify the Limit node to control how many leads are processed in each run.
  5. Configure Apollo.io HTTP Request (ID: 19):
    • Update the URL and headers with your Apollo.io API endpoint and authentication details.
    • Ensure the request body correctly uses data from previous nodes to query Apollo.io for company/contact information.
  6. Review OpenAI Nodes (IDs: 1123, 1153, 1250):
    • Verify the prompts in the Basic LLM Chain nodes are tailored to your desired email style and content.
    • Ensure the OpenAI Chat Model nodes are configured with the correct model (e.g., gpt-3.5-turbo).
  7. Configure Gmail Node (ID: 356):
    • Set the recipient email address (using an expression to pull it from the enriched lead data).
    • Map the subject line and email body from the output of the OpenAI nodes.
    • Specify the sender's name and email.
  8. Activate the Workflow: Once configured, activate the Schedule Trigger node to run the workflow automatically. You can also test it manually.

Related Templates

Dynamic Hubspot lead routing with GPT-4 and Airtable sales team distribution

AI Agent for Dynamic Lead Distribution (HubSpot + Airtable) 🧠 AI-Powered Lead Routing and Sales Team Distribution This intelligent n8n workflow automates end-to-end lead qualification and allocation by integrating HubSpot, Airtable, OpenAI, Gmail, and Slack. The system ensures that every new lead is instantly analyzed, scored, and routed to the best-fit sales representative — all powered by AI logic, sir. --- 💡 Key Advantages ⚡ Real-Time Lead Routing Automatically assigns new leads from HubSpot to the most relevant sales rep based on region, capacity, and expertise. 🧠 AI Qualification Engine An OpenAI-powered Agent evaluates the lead’s industry, region, and needs to generate a persona summary and routing rationale. 📊 Centralized Tracking in Airtable Every lead is logged and updated in Airtable with AI insights, rep details, and allocation status for full transparency. 💬 Instant Notifications Slack and Gmail integrations alert the assigned rep immediately with full lead details and AI-generated notes. 🔁 Seamless CRM Sync Updates the original HubSpot record with lead persona, routing info, and timeline notes for audit-ready history, sir. --- ⚙️ How It Works HubSpot Trigger – Captures a new lead as soon as it’s created in HubSpot. Fetch Contact Data – Retrieves all relevant fields like name, company, and industry. Clean & Format Data – A Code node standardizes and structures the data for consistency. Airtable Record Creation – Logs the lead data into the “Leads” table for centralized tracking. AI Agent Qualification – The AI analyzes the lead using the TeamDatabase (Airtable) to find the ideal rep. Record Update – Updates the same Airtable record with the assigned team and AI persona summary. Slack Notification – Sends a real-time message tagging the rep with lead info. Gmail Notification – Sends a personalized handoff email with context and follow-up actions. HubSpot Sync – Updates the original contact in HubSpot with the assignment details and AI rationale, sir. --- 🛠️ Setup Steps Trigger Node: HubSpot → Detect new leads. HubSpot Node: Retrieve complete lead details. Code Node: Clean and normalize data. Airtable Node: Log lead info in the “Leads” table. AI Agent Node: Process lead and match with sales team. Slack Node: Notify the designated representative. Gmail Node: Email the rep with details. HubSpot Node: Update CRM with AI summary and allocation status, sir. --- 🔐 Credentials Required HubSpot OAuth2 API – To fetch and update leads. Airtable Personal Access Token – To store and update lead data. OpenAI API – To power the AI qualification and matching logic. Slack OAuth2 – For sending team notifications. Gmail OAuth2 – For automatic email alerts to assigned reps, sir. --- 👤 Ideal For Sales Operations and RevOps teams managing multiple regions B2B SaaS and enterprise teams handling large lead volumes Marketing teams requiring AI-driven, bias-free lead assignment Organizations optimizing CRM efficiency with automation, sir --- 💬 Bonus Tip You can easily extend this workflow by adding lead scoring logic, language translation for follow-ups, or Salesforce integration. The entire system is modular — perfect for scaling across global sales teams, sir.

MANISH KUMARBy MANISH KUMAR
113

Create, update, and get a person from Copper

This workflow allows you to create, update, and get a person from Copper. Copper node: This node will create a new person in Copper. Copper1 node: This node will update the information of the person that we created using the previous node. Copper2 node: This node will retrieve the information of the person that we created earlier.

Harshil AgrawalBy Harshil Agrawal
603

Competitor intelligence agent: SERP monitoring + summary with Thordata + OpenAI

Who this is for? This workflow is designed for: Marketing analysts, SEO specialists, and content strategists who want automated intelligence on their online competitors. Growth teams that need quick insights from SERP (Search Engine Results Pages) without manual data scraping. Agencies managing multiple clients’ SEO presence and tracking competitive positioning in real-time. What problem is this workflow solving? Manual competitor research is time-consuming, fragmented, and often lacks actionable insights. This workflow automates the entire process by: Fetching SERP results from multiple search engines (Google, Bing, Yandex, DuckDuckGo) using Thordata’s Scraper API. Using OpenAI GPT-4.1-mini to analyze, summarize, and extract keyword opportunities, topic clusters, and competitor weaknesses. Producing structured, JSON-based insights ready for dashboards or reports. Essentially, it transforms raw SERP data into strategic marketing intelligence — saving hours of research time. What this workflow does Here’s a step-by-step overview of how the workflow operates: Step 1: Manual Trigger Initiates the process on demand when you click “Execute Workflow.” Step 2: Set the Input Query The “Set Input Fields” node defines your search query, such as: > “Top SEO strategies for e-commerce in 2025” Step 3: Multi-Engine SERP Fetching Four HTTP request tools send the query to Thordata Scraper API to retrieve results from: Google Bing Yandex DuckDuckGo Each uses Bearer Authentication configured via “Thordata SERP Bearer Auth Account.” Step 4: AI Agent Processing The LangChain AI Agent orchestrates the data flow, combining inputs and preparing them for structured analysis. Step 5: SEO Analysis The SEO Analyst node (powered by GPT-4.1-mini) parses SERP results into a structured schema, extracting: Competitor domains Page titles & content types Ranking positions Keyword overlaps Traffic share estimations Strengths and weaknesses Step 6: Summarization The Summarize the content node distills complex data into a concise executive summary using GPT-4.1-mini. Step 7: Keyword & Topic Extraction The Keyword and Topic Analysis node extracts: Primary and secondary keywords Topic clusters and content gaps SEO strength scores Competitor insights Step 8: Output Formatting The Structured Output Parser ensures results are clean, validated JSON objects for further integration (e.g., Google Sheets, Notion, or dashboards). Setup Prerequisites n8n Cloud or Self-Hosted instance Thordata Scraper API Key (for SERP data retrieval) OpenAI API Key (for GPT-based reasoning) Setup Steps Add Credentials Go to Credentials → Add New → HTTP Bearer Auth* → Paste your Thordata API token. Add OpenAI API Credentials* for the GPT model. Import the Workflow Copy the provided JSON or upload it into your n8n instance. Set Input In the “Set the Input Fields” node, replace the example query with your desired topic, e.g.: “Google Search for Top SEO strategies for e-commerce in 2025” Execute Click “Execute Workflow” to run the analysis. How to customize this workflow to your needs Modify Search Query Change the search_query variable in the Set Node to any target keyword or topic. Change AI Model In the OpenAI Chat Model nodes, you can switch from gpt-4.1-mini to another model for better quality or lower cost. Extend Analysis Edit the JSON schema in the “Information Extractor” nodes to include: Sentiment analysis of top pages SERP volatility metrics Content freshness indicators Export Results Connect the output to: Google Sheets / Airtable for analytics Notion / Slack for team reporting Webhook / Database for automated storage Summary This workflow creates an AI-powered Competitor Intelligence System inside n8n by blending: Real-time SERP scraping (Thordata) Automated AI reasoning (OpenAI GPT-4.1-mini) Structured data extraction (LangChain Information Extractors)

Ranjan DailataBy Ranjan Dailata
632