🀝 Automated lead-to-client pipeline with Google Sheets email notifications & time tracking

⚑ 995 views · 🀝 CRM & Sales Operations

Description

Google Sheets CRM Automations: Lead Stages β†’ Emails, Client Tracking & Delivery Duration

Turn a simple Google Sheet into a lightweight CRM powered by n8n.


Overview

This template monitors edits in your Leads and Clients tabs and reacts automatically:


What This Template Does


How It Works

  1. Google Apps Script β†’ Webhooks (onEdit)

    • A small Apps Script (provided in the workflow’s Sticky Note) watches the sheet and posts JSON to these n8n webhooks:
      • /webhook/lead-stage-changed
      • /webhook/lead-qualified
      • /webhook/client-status-changed
  2. n8n Flow & Branching

    • lead-stage-changed
      • If Awaiting Proposal β†’ send proposal heads-up email
      • If Won β†’ format timestamp β†’ append to Clients
    • lead-qualified
      • If qualified = true β†’ send Cal.com booking email
    • client-status-changed
      • If Delivered β†’ lookup client row β†’ stamp End Date & Time β†’ compute Time to Deliver β†’ update row

Prerequisites

Suggested columns


Setup Steps

  1. Copy/prepare the Google Sheet

    • Ensure both Leads and Clients tabs exist with the columns above.
  2. Install the Apps Script

    • In Google Sheets: Extensions β†’ Apps Script β†’ paste the script from the workflow’s Sticky Note.
    • Replace webhook URLs with your n8n endpoints:
      • https://{{YOUR_N8N_DOMAIN}}/webhook/lead-stage-changed
      • https://{{YOUR_N8N_DOMAIN}}/webhook/lead-qualified
      • https://{{YOUR_N8N_DOMAIN}}/webhook/client-status-changed
    • Run createInstallableTrigger() once to enable onEdit.
  3. Open the workflow in n8n & replace placeholders

    • {{GOOGLE_SHEETS_DOC_ID}}
    • {{LEADS_GID}}
    • {{CLIENTS_GID}}
    • {{CAL_COM_BOOKING_URL}}
    • {{SENDER_NAME}}
    • {{GMAIL_CREDENTIAL_ID}}, {{GMAIL_CREDENTIAL_NAME}}
    • {{GSHEETS_CREDENTIAL_ID}}, {{GSHEETS_CREDENTIAL_NAME}}
  4. Connect credentials

    • Authorize Google Sheets OAuth2 and Gmail OAuth2 (or switch to SMTP/another email node).
  5. Activate & test

    • Toggle Qualified? on a test row or change Stage to Awaiting Proposal/Won.
    • Verify the email, client append, and duration updates flow end-to-end.

Customization Ideas


Troubleshooting


Video Walkthrough Demo

Screen Studio Template Demo Video

πŸ”— Nodes Used

Google Sheets, Webhook, Gmail

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup