Create a human-like Evolution API WhatsApp agent with Redis, PostgreSQL and Gemini
UnknownWhat this workflow does
This AI workflow has 92 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects Redis, Google Gemini Chat Model, Postgres and Google Gemini and 1 more.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).
- Create Table chat_history (Postgres): run a query
- Open session (Evolution Api): evolution bot (integrations api)
- Read Messages (Evolution Api): read messages (chat api)
- Wait: pauses before continuing
- Global Variables (Edit Fields (Set)): sets 4 fields: number, wait_buffer, wait_conversation…
- Parallel Writing status (Execute Sub-workflow): calls another n8n workflow
- Writting... (Evolution Api): send presence (chat api)
- Message Type (Switch): routes items into 2 branches
- get_message (text) (Edit Fields (Set)): sets 1 field: message
- Push to Buffer (AlbumGroup) (Redis): push
…plus 75 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-evolution-api is verified or supports 3.0 (used in Descargar Media, Read Messages, Open session).
Nodes used (22)
- Evolution Api
n8n-nodes-evolution-api.evolutionApi - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Redis
n8n-nodes-base.redis - No Operation, do nothing
n8n-nodes-base.noOp - If
n8n-nodes-base.if - Wait
n8n-nodes-base.wait - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Webhook
n8n-nodes-base.webhook - Postgres
n8n-nodes-base.postgres - Aggregate
n8n-nodes-base.aggregate - Extract from File
n8n-nodes-base.extractFromFile - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - HTML
n8n-nodes-base.html - Code
n8n-nodes-base.code - Merge
n8n-nodes-base.merge - Convert to File
n8n-nodes-base.convertToFile - Manual Trigger
n8n-nodes-base.manualTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Execute Sub-workflow
n8n-nodes-base.executeWorkflow
From the author
🤖 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…