Templates / Connect apps / Ollama + PostgreSQL
Connect Ollama to PostgreSQL with n8n
20 public n8n templates use both Ollama and PostgreSQL. We checked each one against the n8n 3.0 breaking changes: 13 ready, 7 need changes, 0 unknown (community nodes we can’t verify). Data from the 30 November 2026 library snapshot.
Together these templates have 85,686 views on n8n.io. The most viewed is Automate restaurant customer service with WhatsApp and Llama AI chatbot (39,710 views, needs changes for 3.0). Other apps these templates often use: Google Drive (6), Gmail (5), OpenAI (4), Telegram (4), Google Sheets (3), Anthropic (2).
What needs fixing for n8n 3.0 in this group: AI Agent v1 (old agent modes) (7 templates).
How to connect Ollama 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 Create a private document Q&A system with Llama3, Postgres, Qdrant and Google Drive.
- Pick how it starts. Most of these workflows start with Chat Trigger (8 templates), Manual Trigger (5 templates), Google Drive Trigger (3 templates).
- Add your own credentials. Templates never include credentials, so open each Ollama and PostgreSQL node and connect your accounts. In this group, for Ollama all of them use n8n’s built-in Ollama 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.
Ollama + PostgreSQL templates
- Needs changes Automate restaurant customer service with WhatsApp and Llama AI chatbot · 39,710 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 Local document question answering with Ollama AI, Agentic RAG & PGVector · 10,599 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) - Ready for 3.0 Create a private document Q&A system with Llama3, Postgres, Qdrant and Google Drive · 4,033 views
- Ready for 3.0 Gmail to vector embeddings with PGVector and Ollama · 3,683 views
- Needs changes Email assistant: convert natural language to SQL queries with Phi4-mini and PostgreSQL · 3,191 views
Fix: AI Agent v1 (old agent modes) - Needs changes Chat with internal documents using Ollama, Supabase Vector DB & Google Drive · 2,467 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 Airline web check-in data extraction with Ollama AI, Google Sheets & Postgres Vector DB · 1,360 views
- Ready for 3.0 Build a local RAG chatbot with Ollama, Qwen, BGE-M3 and Postgres PGVector · 688 views
- Ready for 3.0 The title is very good, clearly conveying the template's purpose while mentioning key technologies · 678 views
- Needs changes Manage Appian tasks with Ollama Qwen LLM and Postgres memory · 272 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Create an AI knowledge base assistant using Ollama, PGVector and Telegram · 247 views
- Ready for 3.0 Mask PII in documents for GDPR-safe AI processing with Postgres and Claude · 140 views
- Ready for 3.0 Publish LinkedIn posts from RSS using Ollama, PostgreSQL and Telegram approval · 123 views
- Ready for 3.0 Autonomous AI Customer Support Agent with Multi-KB RAG & Human Escalation · 67 views
- Ready for 3.0 Classify Gmail support emails with AI and store tickets in PostgreSQL · 34 views
- Ready for 3.0 Build a Google Drive document similarity database with Ollama and Postgres · 3 views
- Ready for 3.0 Detect semantic duplicate website pages with Google Drive, Ollama and Postgres · 2 views
Check your own Ollama → PostgreSQL workflow or see all Ollama templates and all PostgreSQL templates
Other Ollama pairs
- Google Sheets + Ollama (27)
- Gmail + Ollama (18)
- Ollama + Telegram (17)
- Ollama + Qdrant (15)
- Google Drive + Ollama (14)
- OpenAI + Ollama (9)
- WhatsApp + Ollama (7)
- LinkedIn + Ollama (6)
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 Ollama to PostgreSQL?
Yes. 20 public n8n templates use both Ollama and PostgreSQL. The most viewed is “Automate restaurant customer service with WhatsApp and Llama AI chatbot” with 39,710 views.
Do the Ollama and PostgreSQL n8n templates work in n8n 3.0?
By our static check, 13 are ready for n8n 3.0, 7 need changes and 0 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 Ollama node?
Yes, every template here uses n8n’s built-in Ollama 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.