Qualify mortgage leads and collect documents with Gemini, Gmail, Drive, Telegram, and Supabase
This workflow serves as a complete "AI Receptionist" for mortgage brokers or high-ticket service providers. It automates the messy process of qualifying leads, getting internal approval, and collecting sensitive client documents securely.
The workflow is fully annotated with Sticky Notes to help you understand every step of the logic.
Key Features Smart Qualification:** automatically filters leads based on income thresholds (e.g., >$80k) before they reach your inbox. Human-in-the-Loop:** Uses Telegram buttons to ask the broker for "Approve/Decline" confirmation before generating client emails. Generative AI:* Uses Google Gemini (2.5-flash-lite)* to write personalized, warm welcome emails based on the lead's specific loan type. Google Workspace Automation:** Automatically creates a unique Google Drive folder for the client and drafts the email in Gmail (with the upload link pre-inserted). Document Collection Portal:** Includes a validation loop that checks if the client uploaded all required files (ID, Payslip, Bank Statements) and notifies the broker of success or failure. Database Logging:** Keeps a "Source of Truth" log in Supabase for every lead action.
Prerequisites To use this template, you will need credentials for: Google Cloud Console: Enable APIs for Drive, Gmail, and Gemini (PaLM). Telegram: A Bot Token and Chat ID for notifications. Supabase: A project URL and API Key (Database schema provided in the Sticky Notes).
How to Configure Credentials: Set up your Google, Telegram, and Supabase credentials in n8n. Supabase Table: Create a table named leads_consolidated (schema details are in the workflow notes). Triggers: Ensure your n8n instance is publicly accessible so the Webhook and Form triggers function correctly. Telegram ID: Update the Chat ID fields in the Telegram nodes to your own ID.
This template is designed to be modular—you can easily swap Supabase for Airtable or Gemini for OpenAI if preferred.
Related Templates
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
📰 AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments