Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

Chat with Postgresql Database

n8n template #2859
Who is this template for? This workflow template is designed for any professionals seeking relevent data from database using natural language. How it works Each time user ask's question using the n8n chat interface, the workflow runs. Then the message is processed by AI Agent using relevent tools - Execute SQL Query, Get DB Schema and Tables List and Get Table Definition, if required. Agent uses these tool to form and run sql query which are necessary to answer the questions. Once AI Agent has the data, it uses it to form answer and returns it to the user. Set up instructions Complete the Set up credentials step when you first open the workflow. You'll need a Postgresql Credentials, and Open

Hand off to your agent

Prompt

Help me set up the n8n workflow "Chat with Postgresql Database" (https://n8n.io/workflows/2859). It uses: AI Agent, OpenAI Chat Model, Simple Memory. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.

Paste into Claude Code and it will do the rest.

Apps and nodes

Similar workflows

NameViews
  1. AI agent chat780K
  2. Building Your First WhatsApp Chatbot332K
  3. Angie, personal AI assistant with Telegram voice and text326K
  4. Build Your First AI Data Analyst Chatbot134K
  5. Create a Branded AI-Powered Website Chatbot88K
  6. Conversational Telegram Bot with GPT-5/GPT-4o for Text and Voice Messages82K
  7. AI chatbot that can search the web72K
  8. AI-Powered WhatsApp Chatbot 🤖📲 for Text, Voice, Images & PDFs with memory 🧠71K
Buy me a coffee