RAG chatbot with Supabase + TogetherAI + Openrouter
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs when a chat message arrives (plus 1 other trigger). Along the way it connects Google Docs, Supabase, Telegram and OpenRouter Chat Model. It also calls api.together.xyz and fqdttboovkcezrxizkpw.supabase.co over HTTP.
How it runs
Trigger: When a chat message arrives (plus 1 other trigger).
- Embend User Message (HTTP Request): calls api.together.xyz (POST)
- Content for the Training (Google Docs): get
- Search Embeddings (HTTP Request): calls fqdttboovkcezrxizkpw.supabase.co (POST)
- Splitting into Chunks (Code): runs custom JavaScript code
- Aggregate: combines items into one
- Embedding Uploaded document (HTTP Request): calls api.together.xyz (POST)
- Basic LLM Chain: sends a prompt to an LLM, with model: OpenRouter Chat Model
- Save the embedding in DB (Supabase): uses Supabase
Services it uses
Other Telegram + OpenRouter templates (136) · Other Telegram + Supabase templates (49) · Other Telegram + Google Docs templates (33)
HTTP calls to: api.together.xyz, fqdttboovkcezrxizkpw.supabase.co
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)
- Google Docs
n8n-nodes-base.googleDocs - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Supabase
n8n-nodes-base.supabase - Telegram Trigger
n8n-nodes-base.telegramTrigger - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Aggregate
n8n-nodes-base.aggregate - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter
From the author
⚠️ RUN the FIRST WORKFLOW ONLY ONCE (as it will convert your content in Embedding format and save it in DB and is ready for the RAG Chat) 📌 Telegram Trigger Type: telegramTrigger Purpose: Waits for new Telegram messages to trigger the workflow. Note:…