AI Personal Assistant with GPT-4o, RAG & Voice for WhatsApp using Supabase

Go to Workflow
3,100 views
Built by Amanda Benks Amanda Benks
Created on May 08, 2025

Description

๐Ÿง  Intelligent AI Assistant with RAG & Voice for WhatsApp โ€“ Built with GPT-4o & Supabase

๐Ÿ“Œ About this workflow and its creator

Hi! Iโ€™m Amanda, a creator of intelligent automations using n8n and Make. Iโ€™ve been building AI-powered workflows for over 2 years, always focused on usability and innovation. This one here is very special to me โ€“ a truly advanced AI assistant that reads, listens, interprets and responds like a real human ๐Ÿค–โœจ

This ready-to-use workflow acts as a powerful AI personal assistant capable of understanding messages via voice, text, documents, or even images. It supports full multi-channel operation (WhatsApp via Evolution API, Instagram, Facebook, and more), and includes advanced RAG capabilities using Supabase + GPT-4o. Itโ€™s designed to be highly extensible, with memory, prompt update tools, and knowledge base management.

โš™๏ธ What this workflow does

๐Ÿ’ฌ Understands user input via text, document, audio or image (voice, OCR, PDF)
๐ŸŽค Transcribes and interprets voice messages using OpenAI Whisper
๐Ÿง  Understands prompts and user commands using GPT-4o via LangChain agent
๐Ÿ—‚๏ธ Searches knowledge base using RAG + Supabase vector DB
๐Ÿ“„ Accepts documents and automatically indexes them for future questions
๐Ÿงพ Summarizes documents and stores metadata in Supabase
๐Ÿ—ƒ๏ธ Offers memory support (PostgreSQL chat memory per user session)
๐Ÿ“ง Sends replies through WhatsApp (Evolution API), Instagram, Facebook, etc.
๐Ÿ“… Manages schedules (via tool integration with Google Calendar)
๐Ÿ“ฌ Sends and searches emails (with support tools)
๐Ÿ›  Modular and expandable structure (tools for saving knowledge, deleting, updating prompt)

๐Ÿ”ง Setup Instructions

n8n Hosting
This workflow requires n8n self-hosted (or n8n Cloud with custom credentials + community nodes enabled).

Create required databases
Use the provided SQL queries inside the setar_supabase_tabelas_vectoriais, criar_cerebro, and criar_rag_controle nodes to initialize:
documents table for RAG
cerebro table for prompt
memoria_chat for session memory
rag_controle for summaries and indexing

Credentials needed
OpenAI API (for chat, embeddings and Whisper transcription)
Redis (for managing message buffer)
Supabase (for vector store + metadata)
Postgres (for memory and prompts)
Evolution API (or other messaging platforms)

Webhook
Set the webhook path to receive messages from your Evolution or WhatsApp API provider.

Configure โ€˜Setโ€™ node
In the config node, adjust:
adminNumero: your personal WhatsApp or admin number
evolutionApiKey: your private API key
utilizacaoApenasViaAdmin: toggle if this should only respond to admin numbers

Tool connections
Ensure the supporting workflows are also imported and connected for:
Emails
Knowledge management
Calendar events

๐Ÿ“Ž Notes

This workflow uses LangChain agents, OpenAI GPT-4o, Supabase, Redis, and PostgreSQL.
It includes multiple โ€œsticky notesโ€ inside the workflow with explanations.
Ideal for businesses, consultants, and developers looking to offer an intelligent and extendable AI chatbot experience.

๐Ÿ› Want to use this on your system?
โค๏ธ Buy workflows: https://iloveflows.com
โ˜๏ธ Use n8n Cloud with my partner link: https://n8n.partnerlinks.io/amanda

Nodes Used (14)

AI Agent
@n8n/n8n-nodes-langchain.agent
Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow
Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader
Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi
OpenAI
@n8n/n8n-nodes-langchain.openAi
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Postgres
n8n-nodes-base.postgres
Postgres Chat Memory
@n8n/n8n-nodes-langchain.memoryPostgresChat
Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter
Redis
n8n-nodes-base.redis
Supabase
n8n-nodes-base.supabase
Supabase Vector Store
@n8n/n8n-nodes-langchain.vectorStoreSupabase
Vector Store Question Answer Tool
@n8n/n8n-nodes-langchain.toolVectorStore