AutomationMart
Home/Browse/Create a human-like Evolution API WhatsApp agent with Redis, PostgreSQL and Gemini
n8n

Create a human-like Evolution API WhatsApp agent with Redis, PostgreSQL and Gemini

n8nn8n92 modulesv1.0
GmailWhatsAppOpenAILinkedInGemini

Human-like Evolution API Agent with Redis & PostgreSQL This production-ready template builds a sophisticated AI Agent using Evolution API that mimics human interaction patterns. Unlike standard chatbots that reply instantly to every incoming message, this workflow uses a Smart Redis Buffering System. It waits for the user to finish typing their full thought (text, audio, or image albums) before processing, creating a natural, conversational flow. It features a Hybrid Memory Architecture: active

At a glance

Create a human-like Evolution API WhatsApp agent with Redis, PostgreSQL and Gemini is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail, WhatsApp, OpenAI, LinkedIn. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, WhatsApp, OpenAI, LinkedIn, Gemini
Modules
92
Price
Free
Version
v1.0
Create a human-like Evolution API WhatsApp agent with Redis, PostgreSQL and Gemini workflow diagram

About this workflow

Human-like Evolution API Agent with Redis & PostgreSQL This production-ready template builds a sophisticated AI Agent using Evolution API that mimics human interaction patterns. Unlike standard chatbots that reply instantly to every incoming message, this workflow uses a Smart Redis Buffering System. It waits for the user to finish typing their full thought (text, audio, or image albums) before processing, creating a natural, conversational flow. It features a Hybrid Memory Architecture: active conversations are cached in Redis for ultra-low latency, while the complete chat history is securely stored in PostgreSQL. To optimize token usage and maintain long-term coherence, a Context Refiner Agent summarizes the conversation history before the Main AI generates a response. ✨ Key Features - Human-like Buffering: The agent waits (configurable time) to group consecutive messages, voice notes, and media albums into a single context. This prevents fragmented replies and feels like talking to a real person. - Hybrid Memory: Combines Redis (Hot Cache) for speed and PostgreSQL (Cold Storage) for permanent history. - Context Refinement: A specialized AI step summarizes past interactions, allowing the Main Agent to understand long conversations without exceeding token limits or increasing costs. - Multi-Modal Support: Natively handles text, audio transcription, and image analysis via Evolution API. - Parallel Processing: Manages "typing..." status and session checks in parallel to reduce response latency. 📋 Requirements To use this workflow, you must configure the Evolution API correctly: 1. Evolution API Instance: You need a running instance of Evolution API. - Configuration Guide 2. N8n Community Node: Install the Evolution API node in your n8n instance. - n8n-nodes-evolution-api 3. Database: A PostgreSQL database for chat history and a Redis instance for the buffer/cache. 4. AI Models: API keys for your LLM (OpenAI, Anthropic, or Google Gemini). ⚙️ Setup Instructions 1. Install the Node: Go to Settings > Community Nodes in n8n and install n8n-nodes-evolution-api. 2. Credentials: Configure credentials for Redis, PostgreSQL, and your AI provider (e.g., OpenAI/Gemini). 3. Database Setup: Create a chathistory table in PostgreSQL (columns must match the Insert node). 4. Redis Connection: Configure your Redis credentials in the workflow nodes. 5. Global Variables: Set the following in the "Global Variables" node: - waitbuffer: Seconds to wait for the user to stop typing (e.g., 5s). - waitconversation: Seconds to keep the cache alive (e.g., 300s). - maxchathistory: Number of past messages to retrieve. 6. Webhook: Point your Evolution API instance to this workflow's Webhook URL. 🚀 How it Works 1. Ingestion: Receives data via Evolution API. Detects if it's text, audio, or an album. 2. Smart Buffering: Holds the execution to collect all parts of the user's message (simulating a human reading/listening). 3. Context Retrieval: Checks Redis for the active session. If empty, fetches from PostgreSQL. 4. Refinement: The Refiner Agent summarizes the history to extract key details. 5. Response: The Main Agent generates a reply based on the refined context and current buffer, then saves it to both Redis and Postgres. 💡 Need Assistance? If you’d like help customizing or extending this workflow, feel free to reach out: 📧 Email: johnsilva11031@gmail.com 🔗 LinkedIn: John Alejandro Silva Rodríguez

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Verify meeting compliance with MeetGeek and OpenAI to get alerts in Slack

Automatically review meeting transcripts for compliance issues using OpenAI and get notified in Slack when problems are found. This template connects a meeting source (e.g., MeetGeek, webhooks, Highlights) with OpenAI to analyze meeting transcripts for swearing, aggressive tone, or any other customizable rule. It then returns a structured JSON report including compliance status, a summary, and a list of flagged incidents. If a meeting is flagged as non-compliant, a detailed message is sent to S

Free

Amazon price drop analysis with Decodo, GPT-4.1-mini & Google Sheets integration

This workflow automatically scrapes Amazon price-drop data via Decodo, extracts structured product details with OpenAI, generates summaries and sentiment insights for each item, and saves everything to Google Sheets — creating a fully automated price-intelligence pipeline. Disclaimer Please note - This workflow is only available on n8n self-hosted as it’s making use of the community node for the Decodo Web Scraping Who this is for This workflow is designed for e-commerce analysts, product resear

Free

Create food emoji icons with OpenAI GPT & image generation

This workflow allows users to generate beautifully stylized 3D-rendered food emoji icons based on a simple text prompt. It combines user input, structured visual design generation, and image rendering using OpenAI’s GPT models. ✨ What It Does 1. Collects user input via a form: e.g. "green apple" 2. Generates a structured JSON specification describing the emoji’s form, lighting, texture, and color scheme 3. Uses AI to render an image base

Free

Send LinkedIn outreach messages using Google Sheets and SourceGeek

How it works This workflow sends a message to a specific LinkedIn profile. The LinkedIn profile data and message content are sourced from a Google Sheet. To send the message from your LinkedIn profile to another LinkedIn user, the SourceGeek node is used. Once the message is successfully sent, the original row in the Google Sheet is updated with a timestamp. How to use - Prepare a Google Sheet containing a LinkedIn profile URL and a message - Select the rows you want the workflow to process - Th

Free

Route and prioritize Gmail support tickets to Notion with Gemini AI and Slack alerts

Who is this for Customer support teams and operations managers who receive support requests via email and need automated triage. Works well for small to mid-size teams using Notion as their ticket tracker. What this workflow does This workflow watches a Gmail inbox for incoming support emails. Each email is analyzed by Gemini AI to determine its category (billing, technical, feature request, or general), priority level, and a suggested response draft. A new page is created in a Notion database w

Free

Multimodal chat assistant with GPT-4o for text, images, and PDFs

Chat with thing This n8n template lets you build a smart AI chat assistant that can handle text, images, and PDFs — using OpenAI's GPT-4o multimodal model. It supports dynamic conversations and file analysis, making it great for AI-driven support bots, personal assistants, or embedded chat widgets. --- 🔍 How it Works - The chat trigger node kicks off a session using n8n's hosted chat UI. - Users can send text or upload images or PDFs — the workflow checks if a file was included. - If

Free

Manage Google Calendar events with natural language using Gemini 1.5 Flash

This is the AI agent which will set the event in the Google Calendar and get the events from the calendar based on the prompt provided to AI agent based on Gemini.

Free

Unlimited website down checker - Uptime Robot alternative

Video Introduction []( Want to automate your inbox or need a custom workflow? 📞 Book a Call | 💬 DM me on Linkedin --- Get Alerted When Your Website Is Down – n8n as an Uptime Robot Alternative If you manage a website (or client sites), getting notified when your site goes down is critical. But you’ve probably experienced alert fatigue if you’ve ever received a flood of downtime emails for every tiny outage. These short hiccups are common, and most monitoring tools don’t let you filter them out.

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free