πŸ’¬ Capture and score website leads with Gemini RAG, Supabase, Google Sheets and Slack alerts

⚑ 28 views Β· πŸ’¬ Lead Nurturing & AI Sales Agents

Description

Turn your website chat into a lead-generating machine. Visitors chat with an AI that answers questions from your knowledge base, captures their contact info, syncs everything to Google Sheets, and automatically scores leads based on buying signals - all without manual intervention.

What it does

Requirements

Setup

  1. Create your Google Sheet with the required columns (or duplicate the template structure)
  2. Set up Supabase tables: chat_users (session_id, name, email), documents (vector store), chat_memory (conversation history)
  3. Connect all credentials to their respective nodes (Google Sheets, Supabase, Gemini, Cohere, Slack, Postgres)
  4. Update the AI agent prompts: replace [AI AGENT NAME], [COMPANY], and [YOUR SERVICES/PRODUCTS/SOLUTIONS] with your details
  5. Populate your Supabase vector store with company knowledge base documents
  6. Update the Google Sheet document ID if using your own sheet
  7. Activate the workflow: chat flow runs on every message, scoring runs every 10 minutes

Next steps

Embed the n8n chat widget on your website to start capturing leads. Monitor your Google Sheet to see leads populate with conversation summaries and scores. Use the lead_status column (Hot/Warm/Cold) to prioritize sales follow-up, or connect to your existing CRM via additional nodes.

Tip: Test the full flow with a few conversations first: provide name/email β†’ ask questions β†’ wait 30 minutes β†’ verify the lead gets scored. The scoring timer resets with each new message, so leads are only scored after conversation inactivity.

Sample Outputs

AI support agent refusing to answer questions until identity received and confirmed

via embedded n8n chat module.

n8n RAG chatbot running with hosted chat interface on external website

via hosted n8n chat trigger.

Supabase DB table updated with users’ name and email address once provided

Creates a new row, or updates the row if the user requests to change their email address in the same chat session.

Google Sheets CRM updated

Creates a new row for a new lead, or updates an existing row for an existing lead. Enters details about the chat, and scores the lead. Link to Google Sheets CRM sample file

Slack alerts triggered in leads channel

Alerts the relevant channel with automated Slack messages any time a lead shares their name and email, plus any time they show possible buying intent.

πŸ”— Nodes Used

Google Sheets, Supabase, Schedule Trigger, Filter, AI Agent, Supabase Vector Store

πŸ“₯ Import

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

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