AI WhatsApp Chatbot with RAG: Automate Text, Voice, Image & PDF Responses

Go to Workflow
55 views
Built by SpaGreen Creative SpaGreen Creative
Created on June 05, 2026

Description

Who it's for
This n8n workflow creates an intelligent WhatsApp customer support bot that can handle text, image, audio, and document messages. The workflow automatically processes incoming messages through different AI agents, maintains conversation context, accesses company knowledge bases, and provides personalized responses. It's designed for businesses looking to automate customer support across multiple communication channels.

Features
Multi-Modal Processing** – Handles text, images, audio, and documents.
Smart Message Routing** – Categorizes and directs messages automatically.
AI Analysis** – Uses Google Gemini (images/audio) and Mistral Cloud (text).
Knowledge Base Access** – Connects with Google Sheets, Docs, and product docs.
Conversation Memory** – Keeps context across multiple messages.
Document Recognition** – Supports PDF, XLS/XLSX, CSV, JSON, and more.
Support Logging** – Tracks customer issues in Google Sheets.
Product Docs** – Access for Salebot, Delix, Socialvibe, Faculty, Yoori, MeetAir, Oxoo, Flixoo.

Requirements
Rapiwa API credentials** for WhatsApp integration
Google Gemini API credentials** for image and audio analysis
Mistral Cloud API credentials** for language model processing
Google Sheets OAuth2 credentials** for accessing and logging data
Google Docs OAuth2 credentials** for accessing company documentation
HTTP Request access** to various product documentation sites

Important Notes
Message Type Handling**: The workflow includes specialized processing for different message types
Document Support**: Supports multiple document formats including PDF, XLS, XLSX, CSV, JSON, XML, RTF, TXT, and HTML
Product Documentation**: Provides access to documentation for multiple products through HTTP requests
Conversation Memory**: Maintains context across multiple messages from the same session
Support Logging**: Automatically logs customer issues with categories and suggested solutions
Error Handling**: Provides appropriate error messages for unsupported file types

Support & Help
WhatsApp**: Chat on WhatsApp
Discord**: SpaGreen Community
Facebook Group**: SpaGreen Support
Website**: https://spagreen.net
Developer Portfolio**: Codecanyon SpaGreen

Nodes Used (9)

AI Agent
@n8n/n8n-nodes-langchain.agent
AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool
Code
n8n-nodes-base.code
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
OpenAI
@n8n/n8n-nodes-langchain.openAi
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
Think Tool
@n8n/n8n-nodes-langchain.toolThink