Block 1 - AI Agent
- Type / Role
- @n8n/n8n-nodes-langchain.agent - agent
- Config choices
- Version 2.1
This workflow is provided as-is. Please review and test before using in production.
Who's it for This workflow is perfect for businesses or individuals who want to automate WhatsApp conversations with an intelligent AI chatbot that can handle text, voice notes , and images...
@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.wait, n8n-nodes-base.noop, n8n-nodes-base.switch, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.set, n8n-nodes-base.code
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jose Bossa.
Original n8n.io sourceπ₯ Who's it for This workflow is perfect for businesses or individuals who want to automate WhatsApp conversations π¬ with an intelligent AI chatbot that can handle text, voice notes π΅, and images πΌοΈ. No advanced coding required! π€ What it does It automatically receives WhatsApp messages through WasenderAPI, intelligently buffers consecutive messages to avoid fragmented responses, processes multimedia content (transcribing audio and analyzing images with AI), and responds naturally using GPT-4o mini with conversation memory. All while protecting your WhatsApp account from being banned. βοΈ How it works
π± Webhook Trigger β Receives new messages from WasenderAPI ποΈ Redis Buffer System β Groups consecutive messages intelligently (7-second window) π Content Classifier β Routes messages by type (text, audio, or image) π΅ Audio Processing β Decrypts and transcribes voice notes using OpenAI Whisper πΌοΈ Image Analysis β Decrypts and analyzes images with GPT-4O Vision π§ AI Agent (GPT-4o mini) β Generates intelligent responses with 10-message memory β±οΈ Anti-Ban Wait β 6-second delay to simulate human typing π€ Message Sender β Delivers response back to WhatsApp user
π Requirements
WasenderAPI account with connected WhatsApp number : https://wasenderapi.com/
Redis database (free tier works fine) OpenAI API key with access to GPT-4o mini and Whisper n8n's AI Agent, LangChain, and Redis nodes
π οΈ How to set up
Create your WasenderAPI account and connect a WhatsApp number Set up a free Redis database and get connection credentials Configure OpenAI API key in n8n credentials Replace the WasenderAPI Bearer token in "Get the audio", "Get the photo", and "Send Message to User" nodes Change the Manual Trigger to a Webhook and configure it in WasenderAPI Customize the AI Agent prompt to match your business needs Adjust wait times if needed (default: 6 seconds for responses, 7 seconds for buffer) Save and activate the workflow β
π¨ How to customize
Modify the AI Agent prompt to change bot personality and instructions Adjust buffer wait time (7 seconds) for faster/slower message grouping Change response delay (6 seconds) based on your use case , its recomendable 30 seconds. Add more content types (documents, videos) by extending the Switch Type node Configure conversation memory window (default: 10 messages)
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
Showing the first 24 of 35 workflow blocks. Download the JSON for the full node graph.
| Workflow | Create a WhatsApp chatbot with GPT-4o, Whisper transcription and Redis buffer |
|---|---|
| Complexity | advanced |
| Nodes | 35 |
| Categories | Support Chatbot, AI Chatbot |
| Author | Jose Bossa |
| Published | 09 Oct 2025 |
Use the JSON export at /data/workflows/9440/9440.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Who's it for This workflow is perfect for businesses or individuals who want to automate WhatsApp conversations with an intelligent AI chatbot that can handle text, voice notes , and images...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.