Automation library · Documents and files

Chat with Supabase

Started by an incoming WhatsApp message, and works across Gmail, Google Drive, Slack, Supabase vectors and two others. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 23 steps: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

23 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
0Loops or waits
6Services it connects to

The flow

Starts it 6Model 10Logic 2Service 5

The steps in the order they run, from what starts it.

  1. 1Embeddings OpenAI8Embeddings Open AiModel
  2. 2Character Text Splitter4Text Splitter Character Text SplitterModel
  3. 3Create fileGoogle Drive triggerStarts it
  4. 4Embeddings OpenAI6Embeddings Open AiModel
  5. 5Chat MemoryMemory Postgres ChatModel
  6. 6When chat message receivedChat triggerStarts it
  7. 7GPT 5Lm Chat Open AiModel
  8. 8Slack TriggerSlack triggerStarts it
  9. 9Telegram TriggerTelegram triggerStarts it
  10. 10Gmail TriggerGmail triggerStarts it
  11. 11WhatsApp TriggerWhats App triggerStarts it
  12. 12Insert into Supabase Vectorstore3Vector Store SupabaseModel
  13. 13Default Data Loader4Document Default Data LoaderModel
  14. 14Download File4Google DriveService
  15. 15Supabase Vector StoreVector Store SupabaseModel
  16. 16RAG AgentAgentModel
  17. 17Edit FieldsSetLogic
  18. 18OCRMistral AiModel
  19. 19Send a text messageTelegramService
  20. 20Send messageWhats AppService
  21. 21Send a messageSlackService
  22. 22Send a message1GmailService
  23. 23Split Out1Split OutLogic

How it's built

Starts on
An incoming WhatsApp message
Steps
23
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Drive, Slack, Supabase vectors, Telegram, WhatsApp
Model
OpenAI
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Drive, Slack, Supabase vectors, Telegram and WhatsApp accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming WhatsApp message.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 23 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 23 steps before you point it at anything that matters.