Templates / Connect apps / Gmail + PostgreSQL
Connect Gmail to PostgreSQL with n8n
82 public n8n templates use both Gmail and PostgreSQL. We checked each one against the n8n 3.0 breaking changes: 57 ready, 16 need changes, 9 unknown (community nodes we can’t verify). Data from the 30 November 2026 library snapshot.
Together these templates have 91,281 views on n8n.io. The most viewed is Explore n8n nodes in a visual reference library (19,666 views, needs changes for 3.0). Other apps these templates often use: OpenAI (43), Slack (30), Google Sheets (21), Google Drive (16), Supabase (13), Telegram (10).
What needs fixing for n8n 3.0 in this group: AI Agent v1 (old agent modes) (16 templates), SerpApi (Google Search) (2 templates), HTTP Request Tool (legacy) (1 template).
How to connect Gmail to PostgreSQL in n8n
- Start from a template instead of a blank canvas. The most viewed one that passes our n8n 3.0 check is Suspicious login detection.
- Pick how it starts. Most of these workflows start with Schedule Trigger (45 templates), Gmail Trigger (20 templates), Manual Trigger (13 templates). 20 templates here start from a Gmail trigger node, so they run when something changes in Gmail.
- Add your own credentials. Templates never include credentials, so open each Gmail and PostgreSQL node and connect your accounts. In this group, for Gmail all of them use n8n’s built-in Gmail node; for PostgreSQL, all of them use n8n’s built-in PostgreSQL node.
- Run it once with test data, then turn it on. Before upgrading to n8n 3.0, paste your version into the 3.0 checker.
Gmail + PostgreSQL templates
- Needs changes Explore n8n nodes in a visual reference library · 19,666 views
Fix: AI Agent v1 (old agent modes), HTTP Request Tool (legacy), SerpApi (Google Search) - Ready for 3.0 Suspicious login detection · 7,406 views
- Unknown OpenClaw Clone 🦞: Expandable Personal Telegram AI Agent Template · 6,606 views
- Needs changes Interactive knowledge base chat with Supabase RAG using AI 📚💬 · 5,547 views
Fix: AI Agent v1 (old agent modes) - Needs changes Automated reservation system with Telegram, Google Gemini AI, and Google Sheets · 5,080 views
Fix: AI Agent v1 (old agent modes) - Needs changes Real-time email RAG assistant with Gmail, OpenAI GPT, and PGVector · 4,997 views
Fix: AI Agent v1 (old agent modes) - Unknown Run a self-hosted multi-channel AI assistant with Claude, Gemini and Gmail · 4,535 views
- Needs changes Real estate chatbot with AI property matching and automated calendar scheduling · 4,327 views
Fix: AI Agent v1 (old agent modes), SerpApi (Google Search) - Ready for 3.0 Gmail to vector embeddings with PGVector and Ollama · 3,683 views
- Ready for 3.0 AI-Powered WhatsApp Chatbot 🤖📅: Complete Booking Assistant with Gemini & Google · 3,196 views
- Ready for 3.0 Create a WhatsApp customer support bot with OpenAI, calendar & email integration · 2,588 views
- Needs changes Local Business Lead Discovery and Enrichment Agent · 1,685 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 AI-powered stock analysis with AI scoring and Gmail report delivery · 1,637 views
- Needs changes Automate stock trades with AI-driven technical analysis & Alpaca Trading · 1,585 views
Fix: AI Agent v1 (old agent modes) - Needs changes AI-powered MIS agent · 1,420 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Extract invoice data from PDFs with AI - Google Sheets Email alerts · 1,364 views
- Ready for 3.0 Detect multi-source transaction fraud and reconcile finances with OpenAI, Nvidia NIM, Gmail, Slack and Google Sheets · 1,215 views
- Ready for 3.0 Automate B2B SaaS renewal risk management with CRM, support & usage data · 1,176 views
- Needs changes Ai voice & text note-taking with LINE Messaging, Supabase Vector DB & Gmail · 1,064 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Automate supplier risk scoring with D&B, NewsAPI & alerts to Gmail · 808 views
- Ready for 3.0 Multi-jurisdiction smart contract compliance monitor with automated alerts · 752 views
- Needs changes Ai email triage & alert system with GPT-4 and Telegram notifications · 739 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Market intelligence engine with AI sentiment detection & competitor analysis · 718 views
- Ready for 3.0 The title is very good, clearly conveying the template's purpose while mentioning key technologies · 678 views
- Needs changes AI-powered WhatsApp customer service with GPT-4, smart routing & knowledge base · 613 views
Fix: AI Agent v1 (old agent modes) - Needs changes Route Chatwoot customer chats to AI and live agents with Groq and Gemini · 527 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Contract extraction, risk analysis & compliance automation with GPT-4.1 Mini · 510 views
- Ready for 3.0 Subscription revenue optimizer with Stripe, Postgres & Gmail - predictive retention · 489 views
- Needs changes Complete B2B sales pipeline: Apollo lead gen, Mailgun outreach & AI reply management · 456 views
Fix: AI Agent v1 (old agent modes) - Needs changes Chat with documents via RAG: Google Drive to GPT-5 with Supabase vector database · 441 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Business AI command center: Modular agents for Google Workspace, vector search & multi-channel reports · 436 views
- Needs changes Automate HighLevel CRM with GPT-5, knowledge retrieval & document context · 403 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Send bulk email campaigns with Gmail/SMTP and Postgres reputation-safe timing · 375 views
- Ready for 3.0 Automated Gmail support agent with Gemini 2.5, RAG & Cohere reranking · 374 views
- Unknown Generate PDF documents from HTML with PDF Generator API, Gmail and Supabase · 328 views
- Unknown Automate WhatsApp sales with DeepSeek AI, Google Sheets and Gmail notifications · 320 views
- Ready for 3.0 Sync Gmail emails to PostgreSQL with S3 attachment storage · 313 views
- Needs changes Multi-channel AI appointment confirmation with GPT-4, ElevenLabs & Twilio · 273 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Monitor data quality with Notion rules, SQL checks & AI-powered alerts · 255 views
- Ready for 3.0 Real-time oil price crisis detection with Qwq-32b AI and multi-channel alerts · 216 views
- Ready for 3.0 Send AI-powered post-purchase emails and WhatsApp messages from PostgreSQL to Google Sheets with Groq · 214 views
- Ready for 3.0 Generate product-aware B2B leads and outreach emails with Gemini, Pinecone and Gmail · 212 views
- Unknown Automate Resume Analysis & Candidate Screening with JotForm, Azure OCR, GPT-4.1, Zoho CRM · 192 views
- Ready for 3.0 Automated product health monitor with anomaly detection & AI root cause analysis · 184 views
- Ready for 3.0 Generate strategic business recommendations with GPT-4 Mini and multi-channel distribution · 181 views
- Ready for 3.0 Automated monthly energy reports with PostgreSQL, PDF.co & email delivery · 158 views
- Ready for 3.0 Capture and enrich leads with GPT-4o, Postgres, Slack, Gmail and your CRM · 132 views
- Ready for 3.0 Analyze contract PDFs and score risk with Claude 3.5, Postgres, email and Slack alerts · 125 views
- Ready for 3.0 Build a support knowledge base from historical Gmail emails with OpenAI and PostgreSQL · 113 views
- Ready for 3.0 Monitor SQL data quality and send email reports with Google Sheets logging · 103 views
- Unknown Screen and score resumes from Gmail with PDF parsing, HubSpot, Slack and PostgreSQL · 80 views
- Ready for 3.0 Autonomous AI Customer Support Agent with Multi-KB RAG & Human Escalation · 67 views
- Unknown Send weekly Jira sprint reports via Gmail, PDF, Markdown and PostgreSQL · 61 views
- Ready for 3.0 Grade and deliver multi-course assignment feedback with GPT-4o, Google Drive, Slack, and Gmail · 55 views
- Ready for 3.0 Automate cross-border tax compliance with Google Sheets, PostgreSQL and Slack alerts · 53 views
- Ready for 3.0 Classify Gmail leads with Groq AI and sync SLA cases to Supabase via Redis · 50 views
- Ready for 3.0 Send post-purchase email sequences with Postgres, Gmail and OpenAI · 48 views
- Unknown Recover abandoned onboarding users with personalized emails via Postgres, Gmail & Slack · 47 views
- Ready for 3.0 Draft and review grounded support email replies with Gmail, OpenAI and Claude · 46 views
- Ready for 3.0 Monitor customer risk and AI feedback using PostgreSQL, Gmail and Discord · 45 views
- Unknown Decrypt legacy PDF archives with HTML to PDF, PostgreSQL and Google Drive · 40 views
- Ready for 3.0 Send post-purchase emails from Postgres with Gmail and Groq AI · 35 views
- Ready for 3.0 Classify Gmail support emails with AI and store tickets in PostgreSQL · 34 views
- Ready for 3.0 Monitor Klaviyo list decay with Postgres logging and Gmail reports · 32 views
- Ready for 3.0 Improve AI support email drafts with Gmail, OpenAI and PostgreSQL · 25 views
- Ready for 3.0 Detect and email top job matches with RemoteOK, Arbeitnow, OpenAI, Gmail and PostgreSQL · 21 views
- Ready for 3.0 Process RFQ quotes from Gmail PDFs using Claude, PostgreSQL, and Slack · 21 views
- Ready for 3.0 Generate Gmail reply drafts with GPT-4o, pgvector, and PostgreSQL · 20 views
- Ready for 3.0 Qualify and route real estate leads with OpenAI, PostgreSQL, Gmail and Slack · 20 views
- Ready for 3.0 Turn forwarded business document images into structured records with gpt-5.6-terra Vision, Postgres, and Gmail · 17 views
- Ready for 3.0 Monitor KPI anomalies with Postgres, Slack, Gmail, GitHub and Claude · 15 views
- Ready for 3.0 Generate a full startup plan from one sentence with OpenAI, Postgres, Notion and Sheets · 10 views
- Ready for 3.0 Onboard Nextcloud users with Gmail approvals, PostgreSQL, and Google Sheets · 5 views
- Ready for 3.0 Detect and explain KPI anomalies with Postgres, Slack, GitHub, Gmail and Claude · 4 views
- Ready for 3.0 Manage e-commerce orders end-to-end with PostgreSQL, Gmail, PDFMonkey and Slack · 4 views
- Ready for 3.0 Score customer churn risk and trigger CS follow-ups with Postgres, Mixpanel, Zendesk, Gmail, Calendly, ClickUp, and Slack · 4 views
- Ready for 3.0 Split shared rental utility bills with gpt-5.6-terra Vision, Postgres and Gmail · 3 views
- Ready for 3.0 Manage catering event quotes and countdowns with Postgres, Gmail, OpenAI and Telegram · 2 views
- Ready for 3.0 Sync ERP order-to-cash data between Microsoft SQL Server, Postgres, Slack and Gmail · 1 views
- Ready for 3.0 Orchestrate HR onboarding and offboarding with Postgres, Slack, Google Workspace, Jira and Notion · 1 views
- Ready for 3.0 Find and score event and speaker opportunities with Gumloop, Supabase, and OpenAI · 0 views
- Ready for 3.0 Guard Stripe and Shopify webhooks with HMAC verification and idempotency · 0 views
Check your own Gmail → PostgreSQL workflow or see all Gmail templates and all PostgreSQL templates
Other Gmail pairs
- Google Sheets + Gmail (2,102)
- OpenAI + Gmail (1,623)
- Gmail + Slack (957)
- Google Gemini + Gmail (518)
- Gmail + Google Drive (465)
- Gmail + Telegram (361)
- Google Calendar + Gmail (239)
- Anthropic + Gmail (192)
Other PostgreSQL pairs
- OpenAI + PostgreSQL (191)
- PostgreSQL + Slack (109)
- Google Sheets + PostgreSQL (71)
- Telegram + PostgreSQL (70)
- Google Drive + PostgreSQL (65)
- Supabase + PostgreSQL (60)
- Google Gemini + PostgreSQL (47)
- OpenRouter + PostgreSQL (32)
FAQ
Is there an n8n template to connect Gmail to PostgreSQL?
Yes. 82 public n8n templates use both Gmail and PostgreSQL. The most viewed is “Explore n8n nodes in a visual reference library” with 19,666 views.
Do the Gmail and PostgreSQL n8n templates work in n8n 3.0?
By our static check, 57 are ready for n8n 3.0, 16 need changes and 9 are unknown because they use community nodes we can’t verify. The most common fix: AI Agent v1 (old agent modes).
Does n8n have a built-in Gmail node?
Yes, every template here uses n8n’s built-in Gmail node.
Static check of the workflow JSON, not a live run on n8n 3.0. Apps are detected from the nodes in each workflow and from well-known API addresses in HTTP Request nodes. All app pairs.
Tools we use or recommend
- Make: Visual automation platform; a good alternative when an n8n flow needs a rebuild. Free plan available.
- Firecrawl: Turns any website into clean, LLM-ready data; simpler than hand-rolled scraping. New users get 10% off their first purchase.
Affiliate links: we may earn a commission at no cost to you.