Templates / Connect apps / OpenAI + PostgreSQL
Connect OpenAI to PostgreSQL with n8n
191 public n8n templates use both OpenAI and PostgreSQL. We checked each one against the n8n 3.0 breaking changes: 115 ready, 63 need changes, 13 unknown (community nodes we can’t verify). Data from the 30 November 2026 library snapshot.
Together these templates have 1,015,757 views on n8n.io. The most viewed is Chat with a database using AI (349,477 views, needs changes for 3.0). 9 of them call OpenAI through the HTTP Request node instead of a dedicated node. Other apps these templates often use: Slack (51), Supabase (48), Gmail (43), Google Drive (42), Telegram (38), Google Sheets (34).
What needs fixing for n8n 3.0 in this group: AI Agent v1 (old agent modes) (63 templates), HTTP Request Tool (legacy) (3 templates), SerpApi (Google Search) (2 templates), Function (legacy) (2 templates), HTML Extract (1 template).
How to connect OpenAI 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 Generate Instagram content from top trends with AI image generation.
- Pick how it starts. Most of these workflows start with Schedule Trigger (78 templates), Chat Trigger (36 templates), Manual Trigger (32 templates).
- Add your own credentials. Templates never include credentials, so open each OpenAI and PostgreSQL node and connect your accounts. In this group, for OpenAI 182 of 191 use n8n’s built-in OpenAI node, the rest call its API with the HTTP Request 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.
OpenAI + PostgreSQL templates
- Needs changes Chat with a database using AI · 349,477 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Generate Instagram content from top trends with AI image generation · 89,330 views
- Needs changes Chat with Postgresql database · 85,592 views
Fix: AI Agent v1 (old agent modes) - Needs changes HR & IT helpdesk chatbot with audio transcription · 41,659 views
Fix: AI Agent v1 (old agent modes) - Unknown Automate sales cold calling pipeline with Apify, gpt-5.6-terra, and WhatsApp · 34,134 views
- Needs changes All-in-one Telegram/Baserow AI assistant 🤖🧠 Voice/Photo/Save notes/Long term mem · 27,000 views
Fix: AI Agent v1 (old agent modes) - Needs changes Multi-Agent AI Clinic Management with WhatsApp, Telegram, and Google Calendar · 25,697 views
Fix: AI Agent v1 (old agent modes) - 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) - Needs changes AI agent to chat with Supabase/PostgreSQL DB · 19,202 views
Fix: AI Agent v1 (old agent modes) - Needs changes ✨📊Multi-AI agent chatbot for Postgres/Supabase DB and QuickCharts + tool router · 13,427 views
Fix: AI Agent v1 (old agent modes) - Needs changes Allow users to send a sequence of messages to an AI agent in Telegram · 13,041 views
Fix: AI Agent v1 (old agent modes) - Needs changes 💅 AI Agents Generate Content & Automate Posting for Beauty Salon Social Media 📲 · 12,434 views
Fix: AI Agent v1 (old agent modes) - Needs changes AI-powered lead generation with Apollo, GPT-4, and Telegram to database · 12,062 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Create a multi-modal Telegram support bot with GPT-4 and Supabase RAG · 11,909 views
- Ready for 3.0 Build an All-Source Knowledge Assistant with Claude, RAG, Perplexity, and Drive · 10,608 views
- Needs changes Local document question answering with Ollama AI, Agentic RAG & PGVector · 10,599 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Natural language database queries with dual-agent AI & PostgreSQL integration · 9,801 views
- Unknown Scrape Google Maps by area & generate outreach messages for lead generation · 9,723 views
- Needs changes AI agent to chat with you Search Console data, using OpenAI and Postgres · 9,562 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 AI-powered invoice reminder & payment tracker for finance & accounting · 9,372 views
- Ready for 3.0 📥 Transform Google Drive documents into vector embeddings · 8,962 views
- Ready for 3.0 AI-driven inventory management with OpenAI forecasting & ERP integration · 8,780 views
- Needs changes 🤖 AI restaurant assistant for WhatsApp, Instagram & Messenger · 8,600 views
Fix: HTTP Request Tool (legacy), AI Agent v1 (old agent modes), Function (legacy) - Needs changes Restaurant order & delivery system for WhatsApp with GPT-4o and Supabase · 8,590 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Answer multi-channel support queries with OpenAI RAG and Supabase · 8,088 views
- Needs changes Split test different agent prompts with Supabase and OpenAI · 8,046 views
Fix: AI Agent v1 (old agent modes) - Unknown OpenClaw Clone 🦞: Expandable Personal Telegram AI Agent Template · 6,606 views
- Needs changes Qualify real estate leads via SMS with GPT-4o, Twilio, and Google Sheets · 6,489 views
Fix: AI Agent v1 (old agent modes) - Unknown Build a WhatsApp assistant for text, audio & images using GPT-4o & Evolution API · 6,400 views
- Needs changes Multi-platform AI sales agent with RAG, CRM logging & appointment booking · 5,939 views
Fix: AI Agent v1 (old agent modes) - Needs changes Interactive knowledge base chat with Supabase RAG using AI 📚💬 · 5,547 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Intelligent legal document review and compliance automation · 5,058 views
- Needs changes Real-time email RAG assistant with Gmail, OpenAI GPT, and PGVector · 4,997 views
Fix: AI Agent v1 (old agent modes) - Needs changes Chat with your email history using Telegram, Mistral and Pgvector for RAG · 4,591 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 Auto-generate & publish SEO articles to WordPress with GPT-4 + Postgres tracking · 4,528 views
Fix: AI Agent v1 (old agent modes) - 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) - Needs changes AI personal assistant with GPT-4o, RAG & voice for WhatsApp using Supabase · 4,297 views
Fix: AI Agent v1 (old agent modes) - Needs changes Conversing with data: transforming text into SQL queries and visual curves · 3,513 views
Fix: AI Agent v1 (old agent modes) - Needs changes Build website Q&A chatbot with RAG, OpenAI GPT-4o-mini and Supabase Vector DB · 3,408 views
Fix: HTML Extract, AI Agent v1 (old agent modes) - Ready for 3.0 Multi-agent healthcare assistant with WhatsApp, GPT-4 & Google Sheets · 3,250 views
- Ready for 3.0 AI-Powered WhatsApp Chatbot 🤖📅: Complete Booking Assistant with Gemini & Google · 3,196 views
- Needs changes 🐶 AI Petshop Assistant with GPT-4o, Google Calendar & WhatsApp/Instagram/FB · 2,765 views
Fix: HTTP Request Tool (legacy), AI Agent v1 (old agent modes), Function (legacy) - Ready for 3.0 Create a WhatsApp customer support bot with OpenAI, calendar & email integration · 2,588 views
- Needs changes Automate Microsoft Teams meeting analysis with GPT-4.1, Outlook & Mem.ai · 2,584 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Transform Excel data into AI-ready vectors with OpenAI and Supabase · 2,461 views
- Needs changes iMessage food photo nutritional analysis with GPT-4 Vision & Memory Storage · 2,287 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Index Google Drive files into a Supabase vector store with OpenAI embeddings · 1,882 views
- Ready for 3.0 AI-driven competitor & market intelligence with GPT 4 & Apify · 1,851 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 AI-powered Asana task prioritization with GPT-4 and Pinecone memory · 1,616 views
Fix: AI Agent v1 (old agent modes) - Needs changes Automate stock trades with AI-driven technical analysis & Alpaca Trading · 1,585 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 RAG chat assistant with Claude, Supabase vector store, and Postgres memory · 1,473 views
- Needs changes 💰 Financial AI agent Telegram and WhatsApp · 1,468 views
Fix: AI Agent v1 (old agent modes) - Needs changes Manage Cloudflare DNS records with AI-powered chat assistant · 1,457 views
Fix: AI Agent v1 (old agent modes) - Needs changes AI-powered MIS agent · 1,420 views
Fix: AI Agent v1 (old agent modes) - Needs changes Automate Instagram influencer lead collection with Apify, GPT and PostgreSQL · 1,393 views
Fix: AI Agent v1 (old agent modes) - Needs changes WhatsApp expense tracker with multi-input (text, image & audio) · 1,368 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 From sitemap crawling to vector storage: Creating an efficient workflow for RAG · 1,331 views
- Ready for 3.0 Create personal data vector store from Google Sheets with OpenAI & Gemini AI · 1,324 views
- Ready for 3.0 Build a RAG knowledge chatbot with OpenAI, Google Drive, and Supabase · 1,315 views
- Needs changes Create personalized email outreach with AI, Telegram bot & website scraping · 1,240 views
Fix: AI Agent v1 (old agent modes) - Needs changes Predictive health monitoring & alert system with GPT-4o-mini · 1,237 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Automated B2B lead management and AI outreach · 1,215 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 AI-powered lead enrichment with Explorium MCP & Telegram · 1,159 views
- Ready for 3.0 Coordinate patient care and alerts with EHR/FHIR, GPT-4, Twilio, Gmail and Slack · 1,110 views
- Needs changes Telegram AI chatbot with document-based answers using OpenAI and PGVector RAG · 1,099 views
Fix: AI Agent v1 (old agent modes) - Needs changes Ai voice & text note-taking with LINE Messaging, Supabase Vector DB & Gmail · 1,064 views
Fix: AI Agent v1 (old agent modes) - Needs changes AI-powered tarot readings via iMessage with GPT & Blooio · 1,016 views
Fix: AI Agent v1 (old agent modes) - Unknown Automate business partner outreach with Google Maps, GPT-4 & WhatsApp · 982 views
- Needs changes Generate & test SQL code with GPT/OpenRouter AI and PostgreSQL sandbox · 951 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Query PostgreSQL database with natural language using GPT-4o-mini · 856 views
- Ready for 3.0 Automate blog-to-social media with GPT-4 for LinkedIn, X, and Reddit · 797 views
- Ready for 3.0 Document-based RAG chat assistant with Google Drive, Supabase & OpenAI · 794 views
- Needs changes Multi-agent personal assistant orchestration with GPT-4o & WhatsApp · 768 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Build an OpenAI RAG system with document upload, semantic search and caching · 764 views
- Ready for 3.0 Automated email responses with GPT-4O & Supabase conversation memory · 746 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 Automated job extraction & publishing with RAG, Jina AI and OpenAI to WordPress · 733 views
- Ready for 3.0 Automate event follow-ups with GPT-4, LinkedIn & HubSpot multi-channel outreach · 732 views
- Ready for 3.0 Market intelligence engine with AI sentiment detection & competitor analysis · 718 views
- Ready for 3.0 Invoice processing: Email to PostgreSQL database with GPT-4o & Discord alerts · 681 views
- Unknown Automated US stock portfolio analysis with Telegram, Perplexity AI & PDF reports · 649 views
- Ready for 3.0 Generate social media posts with GPT-4 for LinkedIn, X, and Facebook · 623 views
- Needs changes Multi-language Telegram RAG chatbot with supervisor AI & automated Google Drive pipeline · 619 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 AI-powered ticket triage with multi-model classification & knowledge base · 613 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 Build a personalized birthday AI companion with GPT-4 and PostgreSQL · 592 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
- Needs changes Build a RAG-powered AI assistant with OpenAI, Google Drive & Supabase Vector DB · 506 views
Fix: AI Agent v1 (old agent modes) - 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
- Ready for 3.0 Real-time IoT anomaly detection with MQTT, GPT-4o-mini AI, and multi-channel alerts · 422 views
- Ready for 3.0 Smart lead outreach with Explorium MCP using Google Sheets and Telegram · 405 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 Automated Gmail support agent with Gemini 2.5, RAG & Cohere reranking · 374 views
Showing the 100 most viewed of 191.
Check your own OpenAI → PostgreSQL workflow or see all OpenAI templates and all PostgreSQL templates
Other OpenAI pairs
- OpenAI + Google Sheets (2,011)
- OpenAI + Gmail (1,623)
- OpenAI + Slack (979)
- Telegram + OpenAI (807)
- OpenAI + Google Drive (628)
- OpenAI + Google Gemini (249)
- Apify + OpenAI (230)
- OpenAI + Airtable (215)
Other PostgreSQL pairs
- PostgreSQL + Slack (109)
- Gmail + PostgreSQL (82)
- 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 OpenAI to PostgreSQL?
Yes. 191 public n8n templates use both OpenAI and PostgreSQL. The most viewed is “Chat with a database using AI” with 349,477 views.
Do the OpenAI and PostgreSQL n8n templates work in n8n 3.0?
By our static check, 115 are ready for n8n 3.0, 63 need changes and 13 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 OpenAI node?
Yes, 182 of 191 templates here use n8n’s built-in OpenAI 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.