đź’¬ Personalized cold email system with Google Gemini, Telegram approval & Google Sheets

⚡ 746 views · 💬 Lead Nurturing & AI Sales Agents

💡 Pro Tip — If you’re pulling LinkedIn data through HTTP requests or dealing with API restrictions, there’s a community node called ScraperNode that handles this natively. It has dedicated scrapers for profiles, companies, jobs, and people search — you just pass a URL and get structured data back.

View All Scrapers

Description

Personalized Cold Email System with Google Gemini AI and Telegram Approval

An AI-powered cold email automation that uses Google Gemini to generate personalized outreach and a Telegram workflow for manual approval, ensuring high-quality, human-in-the-loop campaigns.

Features

How It Works

  1. A manual trigger initiates the workflow and captures the current date and time for logging.
  2. The system fetches a set number of leads (default is three) from the Filtered Leads sheet where the status is “Available”.
  3. It loops through each lead individually to generate and send a unique email.
  4. The AI generates a personalized email (Subject + Body) using the lead’s data.
  5. A preview of the email is sent to a specified Telegram chat with “Approve” and “Reject” buttons.
  6. If approved: The email is sent via SMTP. The lead’s status is updated, and logs are written to the Sent Leads and Emails Sent sheets. The system waits one second before processing the next lead.
  7. If rejected: The system prompts the user for feedback in Telegram. The feedback is combined with the original prompt to generate a new email draft, which is sent for re-approval.
  8. A final notification is sent to Telegram when the batch is complete.

Requirements


Setup Instructions

  1. Google Sheets Setup: Create a new Google Sheet. Rename three tabs to exactly Filtered Leads, Sent Leads, and Emails Sent. Populate the Filtered Leads sheet with your lead data according to the structure specified below.
  2. API Credentials:
    • Google Gemini: Generate an API key from your Google AI Studio account.
    • Telegram Bot: Create a new bot by messaging @BotFather on Telegram and follow the prompts to get your API token. Get your Chat ID by messaging @userinfobot.
  3. SMTP Configuration: Obtain the SMTP server address, port, username, and password from your email provider (e.g., Google Workspace, Outlook).
  4. Automation Platform: In your automation platform (e.g., n8n, Make), create a new workflow.
    • Connect your Google Sheets account using OAuth2.
    • Add the Gemini API Key, Telegram Bot Token, Chat ID, and SMTP credentials into the respective modules or credential stores.
    • Map the sheet columns to the variables in the workflow modules.

Google Sheets Structure

The automation requires the following column headers in each sheet. The names must be exact.

Customization Guide

This template can be adapted to fit specific campaign needs.

đź”— Nodes Used

Send Email, Google Sheets, Telegram, AI Agent, Simple Memory, Structured Output Parser

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup