Automation library · Data collection

Websites into a conversational knowledge base with OpenAI RAG

Started by someone submitting a form, and works across Supabase and Supabase vectors. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 34 steps, 7 branches, 4 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

34 stepsLarge: read it before trusting it with anything live
7Branches: places the flow splits
4Loops or waits
2Services it connects to

The flow

Starts it 2Model 4Logic 16Service 12

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

  1. 1On form submissionForm triggerStarts it
  2. 2Embeddings OpenAIEmbeddings Open AiModel
  3. 3Recursive Character Text SplitterText Splitter Recursive Character Text SplitterModel
  4. 4When clicking ‘Test workflow’Manual triggerStarts it
  5. 5Add to SupabaseSupabaseService
  6. 6Supabase Vector StoreVector Store SupabaseModel
  7. 7Default Data LoaderDocument Default Data LoaderModel
  8. 8Check Supabase ErrorsSupabaseService
  9. 9Check SupabaseSupabaseService
  10. 10Update SupabaseSupabaseService
  11. 11If ERRORs ExistIfLogic
  12. 12IfIfLogic
  13. 13Slow downWaitLogic
  14. 14Limit One ErrorLimitLogic
  15. 15LimitLimitLogic
  16. 16Check PageHttp RequestService
  17. 17Get pageHttp RequestService
  18. 18If Page ExistIfLogic
  19. 19If SUCCESSIfLogic
  20. 20Supabase Reactivate PageSupabaseService
  21. 21Supabase Deactivate PageSupabaseService
  22. 22If PDFIfLogic
  23. 23SupabaseSupabaseService
  24. 24Extract from PDFExtract From FileService
  25. 25Extract Text & Links & EmailsCodeLogic
  26. 26Tea timeWaitLogic
  27. 27If1IfLogic
  28. 28Split OutSplit OutLogic
  29. 29Prepare ContentSetLogic
  30. 30Loop Over ItemsSplit In BatchesLogic
  31. 31Check Already in SupabaseSupabaseService
  32. 32If NOT EXISTIfLogic
  33. 33WaitWaitLogic
  34. 34Save to SupabaseSupabaseService

How it's built

Starts on
Someone submitting a form
Steps
34, with 7 branches, 4 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Supabase, Supabase vectors
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 Supabase and Supabase vectors accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

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 34 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 34 steps before you point it at anything that matters.