Skip to main content

Create a WhatsApp chatbot with GPT-4o, Whisper transcription and Redis buffer

Workflow preview

Workflow preview
100%
Create a WhatsApp chatbot with GPT-4o, Whisper transcription and Redis buffer preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@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

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jose Bossa.

Original n8n.io source

1.1 Workflow description

Title
Create a WhatsApp chatbot with GPT-4o, Whisper transcription and Redis buffer
Workflow name
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)

1.2 Logical Blocks

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.

2. Block-by-Block Analysis

Block 1 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 2 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 3 - Wait3

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 4 - No Operation, do nothing3

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 5 - Switch Type

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 6 - Transcribe a recording

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 7 - Audio Content

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Analyze image

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 9 - Image Content

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Text Content

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Chat Input

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 13 - Code in JavaScript

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Send Message to User

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 15 - Get the audio

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 16 - Download the audio

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 17 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 18 - Get the photo

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 19 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 20 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 21 - Aggregate

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 22 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 23 - Redis

Type / Role
n8n-nodes-base.redis - redis
Config choices
Version 1

Block 24 - Redis1

Type / Role
n8n-nodes-base.redis - redis
Config choices
Version 1

Showing the first 24 of 35 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

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

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9440/9440.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

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.

Frequently asked questions

What does Create a WhatsApp chatbot with GPT-4o, Whisper transcription and Redis buffer do?

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...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

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.