Skip to main content

AI personal assistant with GPT-4o, RAG & voice for WhatsApp using Supabase

Workflow preview

Workflow preview
100%
AI personal assistant with GPT-4o, RAG & voice for WhatsApp using Supabase preview
Open on n8n.io

Important notice

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

1. Workflow Overview

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

Best for

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

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.converttofile, n8n-nodes-base.set, n8n-nodes-base.if, n8n-nodes-base.wait, n8n-nodes-base.redis, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.openai

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
AI personal assistant with GPT-4o, RAG & voice for WhatsApp using Supabase
Workflow name
AI personal assistant with GPT-4o, RAG & voice for WhatsApp using Supabase

🧠 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

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

  2. 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
  3. 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)
  4. Webhook Set the webhook path to receive messages from your Evolution or WhatsApp API provider.

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

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 - OpenAI Chat Model

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

Block 2 - Convert to File

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

Block 3 - edit1

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

Block 4 - edit2

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

Block 5 - auth

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

Block 6 - Message Delay

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

Block 7 - Puxar as Mensagens

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

Block 8 - If1

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

Block 9 - Database

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

Block 10 - Lista Mensagens1

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

Block 11 - Edit Fields2

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

Block 12 - Important Notes

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

Block 13 - OpenAI

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

Block 14 - Sticky Note8

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

Block 15 - setar_supabase_tabelas_vectoriais

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.5

Block 16 - Default Data Loader

Type / Role
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - documentDefaultDataLoader
Config choices
Version 1

Block 17 - Embeddings OpenAI1

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1

Block 18 - Recursive Character Text Splitter

Type / Role
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - textSplitterRecursiveCharacterTextSplitter
Config choices
Version 1

Block 19 - arquivo_id

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

Block 20 - deletar_arquivos_antigos

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

Block 21 - extrair_pdf

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

Block 22 - exportar_texto

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

Block 23 - Embeddings OpenAI

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1

Block 24 - OpenAI Chat Model2

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

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

3. Summary Table

Workflow AI personal assistant with GPT-4o, RAG & voice for WhatsApp using Supabase
Complexity advanced
Nodes 76
Categories Personal Productivity, AI Chatbot
Author Amanda Benks
Published 08 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3947/3947.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 AI personal assistant with GPT-4o, RAG & voice for WhatsApp using Supabase do?

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

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 Personal Productivity, AI Chatbot use case.