Templates / Route omnichannel customer support with Ollama and Postgres pgvector

Route omnichannel customer support with Ollama and Postgres pgvector

Ready for 3.0

by Deepesh Kumar Jain ✓ · 3 views · created 2026-07-31 · Support Chatbot, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 20 nodes and runs when an HTTP POST request hits its webhook URL (plus 2 other triggers). Along the way it connects Postgres.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 2 other triggers).

  1. Normalize and validate (Code): runs custom JavaScript code
  2. Invalid request? (If): checks a condition and branches into true / false
  3. Reject inbound (Respond to Webhook): sends the response back to the webhook caller
  4. Persist and fetch memory (Postgres): run a query
  5. Duplicate event? (If): checks a condition and branches into true / false
  6. Acknowledge duplicate (Respond to Webhook): sends the response back to the webhook caller
  7. Embed question (HTTP Request): calls an HTTP API
  8. Retrieve approved knowledge (Postgres): run a query
  9. Classify and draft (HTTP Request): calls an HTTP API
  10. Route and guardrail (Code): runs custom JavaScript code

…plus 7 more steps. See the full node list below.

Services it uses

Postgres

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

Quick overview This workflow receives customer messages via webhook from chat, email, or social channels, stores conversation history in Postgres (pgvector), retrieves relevant knowledge, and uses Ollama to draft a guarded reply or create a human handoff,…

Excerpt from Deepesh Kumar Jain's description on n8n.io.

View the original on n8n.io → Check your own copy

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.