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

⚑ 3,561 views Β· πŸ’¬ Support Chatbots

Description

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?

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

Credentials required

πŸ”— Nodes Used

Redis, Webhook, Filter, AI Agent, Basic LLM Chain, OpenAI Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup