Automated Document Embedding and Chat Response System

somdn_product_page

This n8n workflow automates the process of transforming a Google Document into embeddings and utilizing those in an interactive chat environment. It begins with fetching document content from Google Docs, which is then split into manageable chunks. Each chunk is sent to an embedding API to generate vector representations, which are stored in a database (Supabase). The workflow also sets up a chat trigger (currently disabled) that, upon receiving a user message, generates an embedding for the message, searches for similar document chunks in the database, and combines these to provide a context-aware response. The core response generation uses a large language model (LLM) from OpenRouter, which responds based only on the retrieved document chunks, making this system ideal for knowledge-based chatbots, training assistants, or FAQ bots.

Node Count

11 – 20 Nodes

Nodes Used

@n8n/n8n-nodes-langchain.chainLlm, @n8n/n8n-nodes-langchain.chatTrigger, @n8n/n8n-nodes-langchain.lmChatOpenRouter, aggregate, code, googleDocs, httpRequest, stickyNote, supabase, telegramTrigger

Reviews

There are no reviews yet.

Be the first to review “Automated Document Embedding and Chat Response System”

Your email address will not be published. Required fields are marked *