Templates / Connect apps / OpenRouter + PostgreSQL
Connect OpenRouter to PostgreSQL with n8n
32 public n8n templates use both OpenRouter and PostgreSQL. We checked each one against the n8n 3.0 breaking changes: 24 ready, 7 need changes, 1 unknown (community nodes we can’t verify). Data from the 30 November 2026 library snapshot.
Together these templates have 71,125 views on n8n.io. The most viewed is Multi-Agent AI Clinic Management with WhatsApp, Telegram, and Google Calendar (25,697 views, needs changes for 3.0). 1 of them calls OpenRouter through the HTTP Request node instead of a dedicated node. Other apps these templates often use: OpenAI (16), Telegram (11), Google Drive (10), Supabase (9), Gmail (8), Slack (8).
What needs fixing for n8n 3.0 in this group: AI Agent v1 (old agent modes) (7 templates).
How to connect OpenRouter 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 Natural language database queries with dual-agent AI & PostgreSQL integration.
- Pick how it starts. Most of these workflows start with Schedule Trigger (15 templates), Telegram Trigger (9 templates), Google Drive Trigger (5 templates).
- Add your own credentials. Templates never include credentials, so open each OpenRouter and PostgreSQL node and connect your accounts. In this group, for OpenRouter 31 of 32 use n8n’s built-in OpenRouter 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.
OpenRouter + PostgreSQL templates
- 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 💅 AI Agents Generate Content & Automate Posting for Beauty Salon Social Media 📲 · 12,434 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 Run a self-hosted multi-channel AI assistant with Claude, Gemini and Gmail · 4,535 views
- Ready for 3.0 Create a Slack AI chatbot with threads & thinking UI using OpenRouter & Postgres · 4,067 views
- Needs changes WhatsApp expense tracker with PostgreSQL database & AI-powered reports · 3,065 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
- Ready for 3.0 Generate stock market insights with technical analysis, AI, and Telegram publishing · 1,635 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 Route user requests to specialized agents with GPT-4o Mini · 1,011 views
Fix: AI Agent v1 (old agent modes) - 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 Dynamic website assistant with DeepSeek AI, Pinecone Vectorstore & site-based routing · 866 views
- Ready for 3.0 Generate n8n workflows from chat using MCP tools, Claude and Postgres · 771 views
- Ready for 3.0 Multi-department support bot with slash commands, Pinecone & Telegram · 727 views
- Ready for 3.0 Business AI command center: Modular agents for Google Workspace, vector search & multi-channel reports · 436 views
- Needs changes AI Qwen-Vl-Plus powered car fleet maintenance alert system · 359 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Create a Witty Telegram Bot with AI-Powered Humor, Roasts & Stats using OpenRouter · 349 views
- Ready for 3.0 Creating SEO-optimized blogs for WordPress using specific tools · 253 views
- Ready for 3.0 Automate SEO blog pipeline from keywords to WordPress with GPT-5 & fal.ai images · 249 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 Manage email campaigns with MailerLite, Google Sheets and Claude via OpenRouter · 152 views
- Ready for 3.0 Generate UK M&A research, pitch decks and briefs from Slack using Anthropic and Google Docs/Slides · 93 views
- Ready for 3.0 Tutor English chat messages using OpenRouter with Postgres memory and log to Supabase · 69 views
- Ready for 3.0 Draft and review grounded support email replies with Gmail, OpenAI and Claude · 46 views
- Ready for 3.0 Sync a Telegram RAG chatbot with Google Drive using OpenAI and Supabase · 37 views
- Ready for 3.0 Reply to Facebook comments with OpenRouter, Supabase, Postgres and Google Drive · 37 views
- Ready for 3.0 Monitor KPI anomalies with Postgres, Slack, Gmail, GitHub and Claude · 15 views
- Ready for 3.0 Answer support questions from your docs with Telegram, OpenRouter and pgvector · 14 views
- Ready for 3.0 Run a RAG Messenger chatbot with Facebook, Google Drive, Supabase, OpenAI and OpenRouter · 7 views
- Ready for 3.0 Reply to Facebook comments using RAG with Google Drive, Supabase, OpenAI and Postgres · 6 views
- Ready for 3.0 Detect and explain KPI anomalies with Postgres, Slack, GitHub, Gmail and Claude · 4 views
- Ready for 3.0 Monitor NASA space weather and DSN anomalies with OpenRouter and Telegram · 1 views
Check your own OpenRouter → PostgreSQL workflow or see all OpenRouter templates and all PostgreSQL templates
Other OpenRouter pairs
- Google Sheets + OpenRouter (210)
- Telegram + OpenRouter (136)
- Gmail + OpenRouter (135)
- OpenAI + OpenRouter (102)
- Google Drive + OpenRouter (76)
- Slack + OpenRouter (73)
- Google Gemini + OpenRouter (65)
- Apify + OpenRouter (30)
Other PostgreSQL pairs
- OpenAI + PostgreSQL (191)
- PostgreSQL + Slack (109)
- Gmail + PostgreSQL (82)
- Google Sheets + PostgreSQL (71)
- Telegram + PostgreSQL (70)
- Google Drive + PostgreSQL (65)
- Supabase + PostgreSQL (60)
- Google Gemini + PostgreSQL (47)
FAQ
Is there an n8n template to connect OpenRouter to PostgreSQL?
Yes. 32 public n8n templates use both OpenRouter and PostgreSQL. The most viewed is “Multi-Agent AI Clinic Management with WhatsApp, Telegram, and Google Calendar” with 25,697 views.
Do the OpenRouter and PostgreSQL n8n templates work in n8n 3.0?
By our static check, 24 are ready for n8n 3.0, 7 need changes and 1 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 OpenRouter node?
Yes, 31 of 32 templates here use n8n’s built-in OpenRouter 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.