Build a Movie Recommendation Chatbot with Qdrant & OpenAI

This workflow automates movie recommendations using a vector database and OpenAI. It solves the problem of finding personalized movie suggestions based on user preferences, saving time and improving accuracy.
Manual Trigger
GitHub
Embeddings OpenAI
+24
Workflow Identifier: 1071
NODES in Use: Manual Trigger, GitHub, Extract From File, Embeddings OpenAI, Default Data Loader, Token Splitter, Qdrant Vector Store, When chat message received, OpenAI Chat Model, Call n8n Workflow Tool, Window Buffer Memory, Execute Workflow Trigger, Merge, Split Out, Split Out1, Merge1, Aggregate, AI Agent, Embedding Recommendation Request with Open AI, Embedding Anti-Recommendation Request with Open AI, Extracting Embedding, Extracting Embedding1, Calling Qdrant Recommendation API, Retrieving Recommended Movies Meta Data, Selecting Fields Relevant for Agent, Sticky Note, Sticky Note1
Automate movie recommendations with n8n and OpenAI

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does

This n8n workflow recommends movies based on what a user likes and dislikes.
It reads movie data from a file, turns descriptions into vectors, and stores them in a database.
When the user gives examples, it finds the closest matching movies in meaning.
The workflow then talks back with a list of good movies to watch.
Its goal is to help users quickly find movies that fit their taste without hunting all day.

This system works by using vectors to measure how similar movie descriptions are to user inputs.
The movie data lives in Qdrant, a special vector database for fast searching by meaning.
With OpenAI, the workflow creates embeddings, which are basically lists of numbers representing text meaning.
These embeddings help compare user preferences to many movies and rank the best matches.
The final output is a friendly message listing three recommended movies with titles, years, and summaries.


Inputs, Processing, and Outputs

Inputs

  • Movie Data CSV File: Contains movie titles, descriptions, and release years from GitHub.
  • User Chat Message: Text describing movies the user likes (positive examples) and dislikes (negative examples).

Processing Steps

  • Load movie data CSV from GitHub.
  • Create text embeddings for each movie description using OpenAI embedding model.
  • Store embeddings and metadata into Qdrant vector database.
  • Receive user chat input via Webhook node.
  • Generate embeddings for user’s positive and negative example texts.
  • Query Qdrant recommendation API with positive and negative embeddings.
  • Fetch detailed metadata for the top 3 recommended movies from Qdrant.
  • Format the recommendations into a clear JSON structure.
  • Use OpenAI GPT-4o-mini model in AI Agent node to create a conversational output message.

Output

A conversational chat response listing the top three movies that best match the user’s preferences.
The message includes movie titles, release years, and short descriptions.
The response is easy to read and hides any numeric scores or internal details.


Beginner Step-by-Step: How to Use This Workflow in n8n Production

Download and Import the Workflow

  1. Use the Download button on this page to save the workflow file locally.
  2. Open the n8n editor, already logged in.
  3. Click on “Import from File” and select the downloaded workflow JSON.

Configure Credentials and Settings

  1. Add OpenAI API Key to the workflow credentials to enable embedding and chat generation.
  2. Add Qdrant API credentials to allow loading and querying movie vectors.
  3. Check the GitHub node to make sure repository owner, name, and file path (e.g., mrscoopers/n8n_demo/Top_1000_IMDB_movies.csv) are correct.
  4. Adjust any IDs, emails, or channels if this workflow integrates with external systems beyond the sample.

Test the Workflow

  1. Trigger the workflow manually or send a test message through the Webhook node with user positive and negative movie examples.
  2. Verify the output message shows three recommended movies with relevant info.

Activate the Workflow for Production

  1. Switch the workflow to active mode in n8n.
  2. Make sure the webhook URL for receiving user chats is accessible to the chatbot or frontend.
  3. Optionally monitor workflow executions to catch errors or slow responses.

For robust live running, consider self-host n8n to keep control over API keys and async scale.


Tools and Services Used

  • GitHub API: Downloads movie CSV data.
  • OpenAI Embeddings API: Converts movie descriptions and user examples into vectors.
  • Qdrant Vector Database API: Stores movie vectors and performs semantic similarity search.
  • n8n nodes: Includes Webhook node, GitHub node, HTTP Request node, Set node, Merge node, SplitOut node, and AI Agent node.

Customization Ideas

  • Change the CSV source in the GitHub node to a different movie list.
  • Update embedding model parameters in OpenAI nodes to use more recent or more efficient models.
  • Increase or decrease the recommendation count in the Qdrant recommendation API call by changing the limit.
  • Modify the prompt in the AI Agent node to change how movie recommendations are presented.
  • Add extra metadata fields like genre or director to enrich movie info shown in results.

Troubleshooting Common Problems

GitHub Node Returns 404 or Fails

Check that the repository owner, name, and file path are exactly correct.
Make sure your GitHub credentials have permission to read the file.

OpenAI Embeddings API Errors or Empty Vectors

Verify the OpenAI API Key is valid and not expired.
Confirm that the input text (movie descriptions or user examples) are not empty or malformed.

Qdrant Recommendation Returns Few or No Results

Make sure movie data and embeddings were uploaded correctly to Qdrant.
Use Qdrant’s dashboard to check the collection and indexed points.
Re-run the movie upload process if vectors are missing.


Summary of Benefits

✓ Saves many hours by reducing manual movie hunting.
✓ Uses user examples to give personalized and relevant recommendations.
✓ Combines semantic search with conversational AI for natural replies.
✓ Easy to import and configure in n8n with provided workflow.
✓ Works with popular services like GitHub, OpenAI, and Qdrant.


Automate movie recommendations with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Yes, but the user must change the HTTP requests and data format to match the new database’s API.
Embeddings and GPT calls consume OpenAI API credits. Monitoring usage is recommended.
Data is sent over HTTPS and managed within the n8n environment. Credentials are encrypted inside n8n.
Yes, but proper hosting and resource management are needed. Scaling Qdrant and API quotas helps.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.