What This Workflow Does
This n8n workflow creates a sophisticated movie recommendation chatbot that avoids the common problem of AI hallucinations by using Retrieval-Augmented Generation (RAG) with Qdrant vector database. Traditional AI chatbots sometimes invent movie titles or attributes that don't exist. This solution grounds all recommendations in your actual movie database.
The system first converts user queries into vector embeddings using OpenAI, then searches Qdrant for the most relevant movies based on similarity. Only after retrieving factual matches does it use OpenAI's language model to generate natural language responses. This two-step process ensures recommendations are always based on real movies in your database.
How It Works
1. Query Processing
When a user asks for movie recommendations ("90s action movies with car chases"), the workflow first sends the query to OpenAI's embedding model to convert it into a numerical vector representation.
2. Vector Search
The vectorized query is sent to Qdrant, which performs a similarity search against pre-computed movie embeddings in your database. Qdrant returns the most relevant matches based on semantic similarity.
3. Response Generation
The workflow takes the top matching movies from Qdrant and passes them to OpenAI's chat model along with the original query. The AI generates a natural language response referencing only these verified movies.
4. Output Delivery
The final recommendation is formatted and delivered through your preferred channel (website chat, mobile app, or API response).
Pro tip: For best results, pre-process your movie database by generating embeddings for all titles, then store them in Qdrant collections organized by genre or other relevant categories.
Who This Is For
This workflow is ideal for streaming platforms, movie review sites, and entertainment businesses that want to:
- Reduce customer support queries about content recommendations
- Increase engagement through personalized suggestions
- Provide 24/7 automated recommendations without human staff
- Integrate conversational search into their platforms
What You'll Need
- An n8n instance (cloud or self-hosted)
- Qdrant database (cloud or local)
- OpenAI API key
- Movie database with metadata (titles, genres, descriptions)
- Basic understanding of vector embeddings
Quick Setup Guide
- Download and import the JSON workflow into your n8n instance
- Configure the Qdrant node with your database credentials
- Add your OpenAI API key to the workflow settings
- Upload your movie data to Qdrant (see our documentation for embedding generation tips)
- Test the workflow with sample queries and refine as needed
Key Benefits
Eliminates hallucinations: Unlike pure LLM solutions, this RAG approach only recommends movies that exist in your database, preventing false suggestions.
Handles complex queries: The system understands nuanced requests like "movies similar to Inception but less confusing" by combining semantic search with language understanding.
Reduces infrastructure costs: Qdrant's efficient vector search requires fewer resources than maintaining a full recommendation engine, cutting cloud costs by 40-60%.
Improves customer experience: Users get accurate, conversational recommendations instantly without browsing or filtering manually.
Easy to update: Add new movies by simply generating their embeddings and adding to Qdrant - no complex retraining needed.