Skip to main content

Build a WhatsApp assistant for text, audio & images using GPT-4o & Evolution API

Workflow preview

Workflow preview
100%
Build a WhatsApp assistant for text, audio & images using GPT-4o & Evolution API preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Build an intelligent WhatsApp assistant that automatically responds to customer messages using AI. This template uses the Evolution API community node for WhatsApp integration and OpenAI for natura...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.set, n8n-nodes-base.filter, n8n-nodes-base.wait, n8n-nodes-evolution-api.evolutionapi, n8n-nodes-base.switch, n8n-nodes-base.converttofile

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Build a WhatsApp assistant for text, audio & images using GPT-4o & Evolution API
Workflow name
Build a WhatsApp assistant for text, audio & images using GPT-4o & Evolution API

Build an intelligent WhatsApp assistant that automatically responds to customer messages using AI. This template uses the Evolution API community node for WhatsApp integration and OpenAI for natural language processing, with built-in conversation memory powered by Redis to maintain context across messages.

> ⚠️ Self-hosted requirement: This workflow uses the Evolution API community node, which is only available on self-hosted n8n instances. It will not work on n8n Cloud.

What this workflow does

  1. Receives incoming WhatsApp messages via Evolution API webhook
  2. Filters and processes text, audio, and image messages
  3. Transcribes audio messages using OpenAI Whisper
  4. Analyzes images using GPT-4 Vision
  5. Generates contextual responses with conversation memory
  6. Sends replies back through WhatsApp

Who is this for?

  • Businesses wanting to automate customer support on WhatsApp
  • Teams needing 24/7 automated responses with AI
  • Developers building multimodal chat assistants
  • Companies looking to reduce response time on WhatsApp

Setup instructions

  1. Evolution API: Install and configure Evolution API on your server. Create an instance and obtain your API key and instance name.
  2. Redis: Set up a Redis instance for conversation memory. You can use a local installation or a cloud service like Redis Cloud.
  3. OpenAI: Get your API key from platform.openai.com with access to GPT and Whisper models.
  4. Webhook: Configure your Evolution API instance to send webhooks to your n8n webhook URL.

Customization options

  • Modify the system prompt in the AI node to change the assistant's personality and responses
  • Adjust the Redis TTL to control how long conversation history is retained
  • Add additional message type handlers for documents, locations, or contacts
  • Integrate with your CRM or database to personalize responses

Credentials required

  • Evolution API credentials (self-hosted)
  • OpenAI API key
  • Redis connection

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 - Main Overview

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

Block 2 - Warning - Setup

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

Block 3 - Section 1 - Receive

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

Block 4 - Section 2 - Mark Read

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

Block 5 - Section 3 - Router

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

Block 6 - Section 4 - Media Processing

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

Block 7 - Section 5 - Queue

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

Block 8 - Section 6 - Check

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

Block 9 - Section 7 - AI

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

Block 10 - Section 8 - Format

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

Block 11 - Section 9 - Send

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

Block 12 - Receive WhatsApp

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 13 - Parse Message Data

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

Block 14 - Filter Allowed Numbers

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 15 - Wait 2s

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

Block 16 - Mark as Read

Type / Role
n8n-nodes-evolution-api.evolutionApi - evolutionApi
Config choices
Version 1

Block 17 - Route by Message Type

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

Block 18 - Extract Text

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

Block 19 - Extract Audio Base64

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

Block 20 - Convert to Audio

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

Block 21 - Transcribe Audio

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

Block 22 - Format Audio Input

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

Block 23 - Extract Image Base64

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

Block 24 - Convert to Image

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

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

3. Summary Table

Workflow Build a WhatsApp assistant for text, audio & images using GPT-4o & Evolution API
Complexity advanced
Nodes 54
Categories Support Chatbot, AI Chatbot
Author Antonio Gasso
Published 12 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11754/11754.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 Build a WhatsApp assistant for text, audio & images using GPT-4o & Evolution API do?

Build an intelligent WhatsApp assistant that automatically responds to customer messages using AI. This template uses the Evolution API community node for WhatsApp integration and OpenAI for natura...

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.