See llms.txt for all machine-readable content.

Postgres and Redis integration

Save yourself the work of writing custom integrations for Postgres and Redis and use n8n instead. Build adaptable and scalable Development, Data & Storage, workflows that work with your technology stack. All within a building experience you will love.

How to connect Postgres and Redis

Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

Postgres and Redis integration: Create a new workflow and add the first step

AI personal assistant with GPT-4o, RAG & voice for WhatsApp using Supabase

🧠 Intelligent AI Assistant with RAG & Voice for WhatsApp – Built with GPT-4o & Supabase 📌 About this workflow and its creator Hi! I’m Amanda, a creator of intelligent automations using n8n and Make. I’ve been building AI-powered workflows for over 2 years, always focused on usability and innovation. This one here is very special to me – a truly advanced AI assistant that reads, listens, interprets and responds like a real human 🤖✨ This ready-to-use workflow acts as a powerful AI personal assistant capable of understanding messages via voice, text, documents, or even images. It supports full multi-channel operation (WhatsApp via Evolution API, Instagram, Facebook, and more), and includes advanced RAG capabilities using Supabase + GPT-4o. It’s designed to be highly extensible, with memory, prompt update tools, and knowledge base management. ⚙️ What this workflow does 💬 Understands user input via text, document, audio or image (voice, OCR, PDF) 🎤 Transcribes and interprets voice messages using OpenAI Whisper 🧠 Understands prompts and user commands using GPT-4o via LangChain agent 🗂️ Searches knowledge base using RAG + Supabase vector DB 📄 Accepts documents and automatically indexes them for future questions 🧾 Summarizes documents and stores metadata in Supabase 🗃️ Offers memory support (PostgreSQL chat memory per user session) 📧 Sends replies through WhatsApp (Evolution API), Instagram, Facebook, etc. 📅 Manages schedules (via tool integration with Google Calendar) 📬 Sends and searches emails (with support tools) 🛠 Modular and expandable structure (tools for saving knowledge, deleting, updating prompt) 🔧 Setup Instructions n8n Hosting This workflow requires n8n self-hosted (or n8n Cloud with custom credentials + community nodes enabled). Create required databases Use the provided SQL queries inside the setar_supabase_tabelas_vectoriais, criar_cerebro, and criar_rag_controle nodes to initialize: documents table for RAG cerebro table for prompt memoria_chat for session memory rag_controle for summaries and indexing Credentials needed OpenAI API (for chat, embeddings and Whisper transcription) Redis (for managing message buffer) Supabase (for vector store + metadata) Postgres (for memory and prompts) Evolution API (or other messaging platforms) Webhook Set the webhook path to receive messages from your Evolution or WhatsApp API provider. Configure ‘Set’ node In the config node, adjust: adminNumero: your personal WhatsApp or admin number evolutionApiKey: your private API key utilizacaoApenasViaAdmin: toggle if this should only respond to admin numbers Tool connections Ensure the supporting workflows are also imported and connected for: Emails Knowledge management Calendar events 📎 Notes This workflow uses LangChain agents, OpenAI GPT-4o, Supabase, Redis, and PostgreSQL. It includes multiple “sticky notes” inside the workflow with explanations. Ideal for businesses, consultants, and developers looking to offer an intelligent and extendable AI chatbot experience. 🛍 Want to use this on your system? ❤️ Buy workflows: https://iloveflows.com ☁️ Use n8n Cloud with my partner link: https://n8n.partnerlinks.io/amanda

Build your own Postgres and Redis integration

Create custom Postgres and Redis workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

Postgres supported actions

Redis supported actions

Delete

Delete a key from Redis

Get

Get the value of a key from Redis

Increment

Atomically increments a key by 1. Creates the key if it does not exist.

Info

Returns generic information about the Redis instance

Keys

Returns all the keys matching a pattern

List Length

Returns the length of a list

Pop

Pop data from a redis list

Publish

Publish message to redis channel

Push

Push data to a redis list

Set

Set the value of a key in redis

Postgres and Redis integration details

Postgres

Postgres, or PostgresSQL, is a free, open-source tool that helps you emphasize extensibility and SQL compliance. It is an advanced object-relational database that provides high performance, reliability and feature robustness.

Redis

Redis is an open-source, advanced key-value store. It is often referred to as a data structure server. Its high performance makes it a favorite fast data store, cache, and even lightweight message broker.

Save engineering resources

Reduce time spent on customer integrations, engineer faster POCs, keep your customer-specific functionality separate from product all without having to code.

Learn more

FAQ about Postgres integrations

Need help setting up your Postgres and Redis integration?

Discover our latest community's recommendations and join the discussions about Postgres and Redis integration.

  • Mikhail Savenkov

    Postgres node IN operator with parameters

    Mikhail Savenkov

    Describe the problem/error/question Postgres node is not working with IN Operator when the parameters is an Array. I suppose that’s because of the sanity checks. E.g. I have a list of some workflows that I’m returning v…

    Open topic
  • Honza Pav

    Passing an array as query parameter in Postgresql

    Honza Pav

    Hello, I have a follow-up question related to a topic that has been discussed but is closed: Postgres use array as a query parameters I want to pass an array into a Postgresql query as a query parameter. Ideally, I woul…

    Open topic
  • CrizCJK

    Issue with AI Agent not reading full PostgreSQL data

    CrizCJK

    Hello everyone, I’m running into an issue with PostgreSQL in n8n that I can’t figure out. My PostgreSQL database has about 20,000 records of sales and stock data. The problem is that my AI Agent doesn’t seem to read th…

    Open topic
  • Thạch Vũ Ngọc

    Postgresql Insert error parsing ISO format string

    Thạch Vũ Ngọc

    I using Postgresql Insert node, but it error when column type is timestamp I have the input date in ISO 8601 date string format and I keep getting an error. What is the error message (if any)? Input of Insert node O…

    Open topic
  • Shazim Ali

    Pass dynamic perameters to postgres_SQL node query

    Shazim Ali

    hi i am new to n8n basically i have build a chat bot, which is created query on the base of question, but sometime AI based queries are failed to give accurate result, so i have created sql function in vector database, t…

    Open topic

Looking to integrate Slack and VirusTotal in your company?

Three colleagues talking around laptops at a shared desk

Trusted by teams building smarter workflows.

Why

Why use n8n to integrate Postgres with Redis

Handle branching, merging and iteration easily. Pause your workflow to wait for external events.

Re-run single steps to test changes in no time. And pin your data to avoid generating trigger events every time you execute.

Your data is displayed alongside your settings, making edge cases easy to track down.

Use 1000+ workflow templates available from our core team and our community.

Copy and paste, easily import and export workflows.

Simple enough to 
understand + sophisticated 
enough to ship

Man in a brown jacket working at his desk by a window