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.

13ready for 3.0
7need changes
0unknown

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

  1. 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.
  2. Pick how it starts. Most of these workflows start with Chat Trigger (8 templates), Manual Trigger (5 templates), Google Drive Trigger (3 templates).
  3. 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.
  4. Run it once with test data, then turn it on. Before upgrading to n8n 3.0, paste your version into the 3.0 checker.

📬 Weekly n8n 3.0 breakage alerts, free

Ollama + PostgreSQL templates

Check your own Ollama → PostgreSQL workflow or see all Ollama templates and all PostgreSQL templates

Other Ollama pairs

Other PostgreSQL pairs

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.

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.