Create a WhatsApp Chatbot with GPT-4o, Whisper Transcription and Redis Buffer
š„ 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)
Related Templates
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
š¤ Build Resilient AI Workflows with Automatic GPT and Gemini Failover Chain
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works This...
š Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments