New: FlowLume Pro · version snapshots, handoff docs, full backups and more. One payment, yours for life. See Pro

Chat with Postgresql database: n8n template

Chat with Postgresql database is a free n8n workflow template by KumoHQ with 7 nodes. It starts with the Chat Trigger node ("When chat message received") and uses AI Agent, OpenAI Chat Model and Postgres Tool. You can paste it into your n8n editor in one click with FlowLume.

What this workflow does, step by step

  1. When chat message received (Chat Trigger node)
  2. AI Agent
  3. Chat History (Simple Memory node)
  4. Execute SQL Query (Postgres Tool node)
  5. OpenAI Chat Model
  6. Get Table Definition (Postgres Tool node)
  7. Get DB Schema and Tables List (Postgres Tool node)

What you need before you paste it

Connect these accounts in n8n

  • OpenAI · used by OpenAI Chat Model
  • Postgres · used by Get Table Definition, Execute SQL Query, Get DB Schema and Tables List

Checked with FlowLume's setup checklist on 2026-11-25. In the extension, FlowLume Pro shows this checklist for any template before you paste.

Template facts

Author
KumoHQ
Nodes
7
Apps
Chat Trigger, AI Agent, OpenAI Chat Model, Postgres Tool
Uses AI
Yes (n8n AI nodes)
Categories
Internal Wiki, AI Chatbot
Views on n8n.io
85,651
Published
7 February 2025
Price
Free

How to paste it with FlowLume

  1. Install FlowLume. Add the free FlowLume extension to Google Chrome from the Chrome Web Store.
  2. Open n8n. Open a new or existing workflow in your n8n editor (n8n Cloud or self-hosted).
  3. Find the template. Click the FlowLume button at the bottom right and search for "Chat with Postgresql database".
  4. Paste it. Click Paste to n8n. All nodes and connections land on your canvas.
  5. Connect your accounts. Add your own credentials for OpenAI, Postgres, then run the workflow.
Add FlowLume to Chrome, free

Similar n8n templates

Template "Chat with Postgresql database" by KumoHQ, published on n8n.io. The template and its description belong to its author; this page only summarises its structure. FlowLume is an independent tool by DrakenLume and is not affiliated with n8n GmbH. n8n is a trademark of n8n GmbH.