Process search queries through advanced generative model with vector storage
Workflow Description
An intelligent workflow that receives queries via webhook, loads and chunks documents, transforms them into numerical vectors, retrieves relevant information from a vector database, then sends it to a language model for generating accurate responses.
How it works
- 1.Receive and validate query through webhook endpoint
- 2.Load, split documents into chunks, and convert to vector embeddings
- 3.Search vector store and retrieve contextually relevant information
- 4.Send context and query to Gemini model to generate response
- 5.Publish result to Twitter/X and return response via webhook
Use cases
- Automated Q&A system that extracts information from proprietary documents based on user questions
- Instantly publish analytics and summaries to social media when specific queries are received
Requirements
- Text documents available for loading into the system
- Gemini API key and Qdrant vector database for vector storage and retrieval
- Twitter/X account for publishing results
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (34)
Bitrix24 Handler
Webhook
Credentials
Set
Validate Token
If
Route Event
Switch
Process Message
Function
Process Join
Function
Process Install
Function
Register Bot
HTTP Request
Send Message
HTTP Request
Send Join Message
HTTP Request
Process Delete
No Op
Success Response
Webhook
Error Response
Webhook
Merge parameters for Subworkflow
Merge
Get a list of available storages
HTTP Request
Get a list of List of Files and Folders
HTTP Request
Get a list of Folders files
HTTP Request
Download file
HTTP Request
Default Data Loader
Document Default Data Loader
Recursive Character Text Splitter
Text Splitter Recursive Character Text Splitter
Split Out folder files and folders
Split Out
Filter for files
Filter
Move files to Vector stored folder
HTTP Request
Execute Workflow Trigger
Execute Workflow Trigger
Sticky Note
Sticky Note
Qdrant Vector Store
Vector Store Qdrant
Embeddings Ollama
Embeddings Ollama
Vector Store Retriever
Retriever Vector Store
Question and Answer Chain
Chain Retrieval Qa
Prepare output parameters
Set
Embeddings Ollama1
Embeddings Ollama
Google Gemini Chat Model
Gemini Model
Qdrant Vector Store1
Vector Store Qdrant
Execute subworkflow
Execute Workflow