Back to Catalog

Deduplicate lead data with Google Sheets: automated email alerts & log management

Rahul JoshiRahul Joshi
126 views
2/3/2026
Official Page

Description:

Keep your databases clean and reliable with this intelligent n8n workflow template! Effortlessly detect duplicate records, generate structured logs, and receive instant email updates—no manual review needed.

This automation retrieves records from Google Sheets, runs a custom deduplication engine to detect duplicate entries (based on email and phone), saves detailed logs to Google Drive, and notifies your team via email. Perfect for businesses, analysts, and data teams who need to maintain clean datasets and ensure accuracy in customer or lead management systems.

What This Template Does:

📊 Fetches data from Google Sheets for duplicate analysis 🧠 Identifies duplicate entries using email + phone logic 📂 Generates detailed duplication logs and saves them in Google Drive 📧 Sends automated email notifications to your team with process details 🌟 100% automated: just run the workflow and get instant results

Built-in Logic Ensures:

✔️ Duplicate detection is accurate and structured ✔️ Logs are organized for easy access and auditing ✔️ Team members stay informed with timely notifications

Requirements:

  • Google Sheets containing your dataset
  • Google Drive account for log storage
  • SMTP/Gmail account for notifications
  • n8n instance (self-hosted or cloud)

Perfect For:

  • Data teams maintaining large customer or lead databases
  • Businesses ensuring accuracy in CRM records
  • Analysts and operations teams wanting hands-free duplicate management

n8n Workflow: Deduplicate Lead Data with Google Sheets, Automated Email Alerts, and Log Management

This n8n workflow automates the process of managing lead data in Google Sheets, specifically focusing on identifying and handling duplicate entries. It listens for new data in a Google Sheet, checks for existing records, and then either adds the new lead or flags it as a duplicate, sending an email alert and logging the action.

What it does

This workflow streamlines your lead management by:

  1. Monitoring Google Sheet for New Leads: Automatically triggers when new rows are added to a specified Google Sheet.
  2. Checking for Duplicates: For each new lead, it queries the same Google Sheet to determine if a lead with the same email already exists.
  3. Conditional Processing:
    • If the lead is new (no duplicate found), it appends the new lead data to the Google Sheet.
    • If the lead is a duplicate, it skips adding the lead and proceeds to the alert and logging steps.
  4. Sending Email Alerts for Duplicates: Notifies a specified email address when a duplicate lead is detected, providing details of the duplicate entry.
  5. Logging Actions: Records whether a lead was added or detected as a duplicate in a separate Google Sheet for auditing and tracking.

Prerequisites/Requirements

To use this workflow, you will need:

  • Google Account: With access to Google Sheets.
  • Google Sheets Credentials: Configured in n8n for accessing your lead data and log sheets.
  • Email Sending Service: Configured in n8n (e.g., an SMTP server or an email integration like Gmail) to send alerts.
  • Two Google Sheets:
    • One for your primary lead data (where new leads are added and checked).
    • One for logging workflow actions (e.g., "Lead Processing Log").

Setup/Usage

  1. Import the Workflow: Download the provided JSON and import it into your n8n instance.
  2. Configure Google Sheets Credentials:
    • For the "Google Sheets Trigger" node, select or create your Google Sheets OAuth2 credential.
    • For the "Google Sheets" nodes (for adding new leads and logging), select or create your Google Sheets OAuth2 credential.
  3. Configure Google Sheets Trigger:
    • In the "Google Sheets Trigger" node, specify the Spreadsheet ID and Sheet Name of your primary lead data sheet.
    • Set the Trigger When option to "New Row".
  4. Configure Duplicate Check (HTTP Request):
    • The "HTTP Request" node is likely configured to query the Google Sheets API directly to check for existing emails. You might need to adjust the URL and query parameters to match your sheet structure and the email column.
    • Ensure the spreadsheetId and range in the URL are correct. The q parameter should dynamically search for the email from the incoming data.
  5. Configure "If" Node:
    • The "If" node likely checks the response from the "HTTP Request" node to see if any matching records were found. Adjust the condition to accurately detect if a duplicate email exists (e.g., checking the length of the returned data array).
  6. Configure "Google Sheets" (Add New Lead):
    • In the "Google Sheets" node connected to the "True" branch of the "If" node, specify the Spreadsheet ID and Sheet Name of your primary lead data sheet.
    • Ensure the "Operation" is set to "Append Row" and map the incoming data fields to the correct columns in your sheet.
  7. Configure Email Alert:
    • Connect an email node (e.g., "Send Email" or "Gmail") to the "False" branch of the "If" node.
    • Configure the email node with your email service credentials.
    • Set the recipient email address for alerts and customize the subject and body to include details of the duplicate lead (e.g., using expressions to pull data from the incoming item).
  8. Configure Log Management (Google Sheets):
    • Connect a "Google Sheets" node to both the "True" and "False" branches of the "If" node (or a single node after a Merge node if you want a unified log entry).
    • Specify the Spreadsheet ID and Sheet Name of your log sheet.
    • Set the "Operation" to "Append Row".
    • Map relevant data (e.g., lead email, timestamp, action taken - "Lead Added" or "Duplicate Detected") to the columns in your log sheet.
  9. Activate the Workflow: Once all nodes are configured, activate the workflow to start monitoring your Google Sheet for new leads.

Related Templates

Auto-create TikTok videos with VEED.io AI avatars, ElevenLabs & GPT-4

💥 Viral TikTok Video Machine: Auto-Create Videos with Your AI Avatar --- 🎯 Who is this for? This workflow is for content creators, marketers, and agencies who want to use Veed.io’s AI avatar technology to produce short, engaging TikTok videos automatically. It’s ideal for creators who want to appear on camera without recording themselves, and for teams managing multiple brands who need to generate videos at scale. --- ⚙️ What problem this workflow solves Manually creating videos for TikTok can take hours — finding trends, writing scripts, recording, and editing. By combining Veed.io, ElevenLabs, and GPT-4, this workflow transforms a simple Telegram input into a ready-to-post TikTok video featuring your AI avatar powered by Veed.io — speaking naturally with your cloned voice. --- 🚀 What this workflow does This automation links Veed.io’s video-generation API with multiple AI tools: Analyzes TikTok trends via Perplexity AI Writes a 10-second viral script using GPT-4 Generates your voiceover via ElevenLabs Uses Veed.io (Fabric 1.0 via FAL.ai) to animate your avatar and sync the lips to the voice Creates an engaging caption + hashtags for TikTok virality Publishes the video automatically via Blotato TikTok API Logs all results to Google Sheets for tracking --- 🧩 Setup Telegram Bot Create your bot via @BotFather Configure it as the trigger for sending your photo and theme Connect Veed.io Create an account on Veed.io Get your FAL.ai API key (Veed Fabric 1.0 model) Use HTTPS image/audio URLs compatible with Veed Fabric Other APIs Add Perplexity, ElevenLabs, and Blotato TikTok keys Connect your Google Sheet for logging results --- 🛠️ How to customize this workflow Change your Avatar: Upload a new image through Telegram, and Veed.io will generate a new talking version automatically. Modify the Script Style: Adjust the GPT prompt for tone (educational, funny, storytelling). Adjust Voice Tone: Tweak ElevenLabs stability and similarity settings. Expand Platforms: Add Instagram, YouTube Shorts, or X (Twitter) posting nodes. Track Performance: Customize your Google Sheet to measure your most successful Veed.io-based videos. --- 🧠 Expected Outcome In just a few seconds after sending your photo and theme, this workflow — powered by Veed.io — creates a fully automated TikTok video featuring your AI avatar with natural lip-sync and voice. The result is a continuous stream of viral short videos, made without cameras, editing, or effort. --- ✅ Import the JSON file in n8n, add your API keys (including Veed.io via FAL.ai), and start generating viral TikTok videos starring your AI avatar today! 🎥 Watch This Tutorial --- 📄 Documentation: Notion Guide Need help customizing? Contact me for consulting and support : Linkedin / Youtube

Dr. FirasBy Dr. Firas
39510

Synchronizing WooCommerce inventory and creating products with Google Gemini AI and BrowserAct

Synchronize WooCommerce Inventory & Create Products with Gemini AI & BrowserAct This sophisticated n8n template automates WooCommerce inventory management by scraping supplier data, updating existing products, and intelligently creating new ones with AI-formatted descriptions. This workflow is essential for e-commerce operators, dropshippers, and inventory managers who need to ensure their product pricing and stock levels are synchronized with multiple third-party suppliers, minimizing overselling and maximizing profit. --- Self-Hosted Only This Workflow uses a community contribution and is designed and tested for self-hosted n8n instances only. --- How it works The workflow is typically run by a Schedule Trigger (though a Manual Trigger is also shown) to check stock automatically. It reads a list of suppliers and their inventory page URLs from a central Google Sheet. The workflow loops through each supplier: A BrowserAct node scrapes the current stock and price data from the supplier's inventory page. A Code node parses this bulk data into individual product items. It then loops through each individual product found. The workflow checks WooCommerce to see if the product already exists based on its name. If the product exists: It proceeds to update the existing product's price and stock quantity. If the product DOES NOT exist: An If node checks if the missing product's category matches a predefined type (optional filtering). If it passes the filter, a second BrowserAct workflow scrapes detailed product attributes from a dedicated product page (e.g., DigiKey). An AI Agent (Gemini) transforms these attributes into a specific, styled HTML table for the product description. Finally, the product is created in WooCommerce with all scraped details and the AI-generated description. Error Handling: Multiple Slack nodes are configured to alert your team immediately if any scraping task fails or if the product update/creation process encounters an issue. Note: This workflow does not support image uploads for new products. To enable this functionality, you must modify both the n8n and BrowserAct workflows. --- Requirements BrowserAct API account for web scraping BrowserAct n8n Community Node -> (n8n Nodes BrowserAct) BrowserAct templates named “WooCommerce Inventory & Stock Synchronization” and “WooCommerce Product Data Reconciliation” Google Sheets credentials for the supplier list WooCommerce credentials for product management Google Gemini account for the AI Agent Slack credentials for error alerts --- Need Help? How to Find Your BrowseAct API Key & Workflow ID How to Connect n8n to Browseract How to Use & Customize BrowserAct Templates How to Use the BrowserAct N8N Community Node --- Workflow Guidance and Showcase STOP Overselling! Auto-Sync WooCommerce Inventory from ANY Supplier

Madame AI Team | KaiBy Madame AI Team | Kai
600

Tax deadline management & compliance alerts with GPT-4, Google Sheets & Slack

AI-Driven Tax Compliance & Deadline Management System Description Automate tax deadline monitoring with AI-powered insights. This workflow checks your tax calendar daily at 8 AM, uses GPT-4 to analyze upcoming deadlines across multiple jurisdictions, detects overdue and critical items, and sends intelligent alerts via email and Slack only when immediate action is required. Perfect for finance teams and accounting firms who need proactive compliance management without manual tracking. 🏛️🤖📊 Good to Know AI-Powered: GPT-4 provides risk assessment and strategic recommendations Multi-Jurisdiction: Handles Federal, State, and Local tax requirements automatically Smart Alerts: Only notifies executives when deadlines are overdue or critical (≤3 days) Priority Classification: Categorizes deadlines as Overdue, Critical, High, or Medium priority Dual Notifications: Critical alerts to leadership + daily summaries to team channel Complete Audit Trail: Logs all checks and deadlines to Google Sheets for compliance records How It Works Daily Trigger - Runs at 8:00 AM every morning Fetch Data - Pulls tax calendar and company configuration from Google Sheets Analyze Deadlines - Calculates days remaining, filters by jurisdiction/entity type, categorizes by priority AI Analysis - GPT-4 provides strategic insights and risk assessment on upcoming deadlines Smart Routing - Only sends alerts if overdue or critical deadlines exist Critical Alerts - HTML email to executives + Slack alert for urgent items Team Updates - Slack summary to finance channel with all upcoming deadlines Logging - Records compliance check results to Google Sheets for audit trail Requirements Google Sheets Structure Sheet 1: TaxCalendar DeadlineID | DeadlineName | DeadlineDate | Jurisdiction | Category | AssignedTo | IsActive FED-Q1 | Form 1120 Q1 | 2025-04-15 | Federal | Income | John Doe | TRUE Sheet 2: CompanyConfig (single row) Jurisdictions | EntityType | FiscalYearEnd Federal, California | Corporation | 12-31 Sheet 3: ComplianceLog (auto-populated) Date | AlertLevel | TotalUpcoming | CriticalCount | OverdueCount 2025-01-15 | HIGH | 12 | 3 | 1 Credentials Needed Google Sheets - Service Account OAuth2 OpenAI - API Key (GPT-4 access required) SMTP - Email account for sending alerts Slack - Bot Token with chat:write permission Setup Steps Import workflow JSON into n8n Add all 4 credentials Replace these placeholders: YOURTAXCALENDAR_ID - Tax calendar sheet ID YOURCONFIGID - Company config sheet ID YOURLOGID - Compliance log sheet ID C12345678 - Slack channel ID tax@company.com - Sender email cfo@company.com - Recipient email Share all sheets with Google service account email Invite Slack bot to channels Test workflow manually Activate the trigger Customizing This Workflow Change Alert Thresholds: Edit "Analyze Deadlines" node: Critical: Change <= 3 to <= 5 for 5-day warning High: Change <= 7 to <= 14 for 2-week notice Medium: Change <= 30 to <= 60 for 2-month lookout Adjust Schedule: Edit "Daily Tax Check" trigger: Change hour/minute for different run time Add multiple trigger times for tax season (8 AM, 2 PM, 6 PM) Add More Recipients: Edit "Send Email" node: To: cfo@company.com, director@company.com CC: accounting@company.com BCC: archive@company.com Customize Email Design: Edit "Format Email" node to change colors, add logo, or modify layout Add SMS Alerts: Insert Twilio node after "Is Critical" for emergency notifications Integrate Task Management: Add HTTP Request node to create tasks in Asana/Jira for critical deadlines Troubleshooting | Issue | Solution | |-------|----------| | No deadlines found | Check date format (YYYY-MM-DD) and IsActive = TRUE | | AI analysis failed | Verify OpenAI API key and account credits | | Email not sending | Test SMTP credentials and check if critical condition met | | Slack not posting | Invite bot to channel and verify channel ID format | | Permission denied | Share Google Sheets with service account email | 📞 Professional Services Need help with implementation or customization? Our team offers: 🎯 Custom workflow development 🏢 Enterprise deployment support 🎓 Team training sessions 🔧 Ongoing maintenance 📊 Custom reporting & dashboards 🔗 Additional API integrations Discover more workflows – Get in touch with us

Oneclick AI SquadBy Oneclick AI Squad
93