Build a knowledge base chatbot with Jotform, RAG Supabase, Together AI & Gemini
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs on Jotform events (plus 1 other trigger). Along the way it connects Supabase, Google Gemini Chat Model and Jot Form. It also calls api.together.xyz over HTTP.
How it runs
Trigger: On Jotform events (plus 1 other trigger).
- Grab New knowledgebase (HTTP Request): calls an HTTP API
- Embend User Message (HTTP Request): calls api.together.xyz (POST)
- Grab the uploaded knowledgebase file link (HTTP Request): calls an HTTP API
- Search Embeddings (HTTP Request): calls an HTTP API (POST)
- Extract Text from PDF File (Extract from File): extracts data from a file (pdf)
- Aggregate: combines items into one
- Splitting into Chunks (Code): runs custom JavaScript code
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model
- Embedding Uploaded document (HTTP Request): calls api.together.xyz (POST)
- Save the embedding in DB (Supabase): uses Supabase
Services it uses
HTTP calls to: api.together.xyz
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Supabase
n8n-nodes-base.supabase - Aggregate
n8n-nodes-base.aggregate - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - AI Agent
@n8n/n8n-nodes-langchain.agent - Extract from File
n8n-nodes-base.extractFromFile - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Jotform Trigger
n8n-nodes-base.jotFormTrigger
From the author
Youtube Video: https://youtu.be/dEtV7OYuMFQ?si=fOAlZWz4aDuFFovH Workflow Pre-requisites Step 1: Supabase Setup First, replace the keys in the "Save the embedding in DB" & "Search Embeddings" nodes with your new Supabase keys. After that, run the following…