HelloFresh Recipe Recommendation Engine with AI Agent
detail.loadingPreview
Build a personalized recipe recommendation system for HelloFresh using an AI agent, vector store, and a traditional database.
About This Workflow
This workflow demonstrates how to create a sophisticated recipe recommendation engine for HelloFresh. It scrapes the weekly menu, processes recipe data, stores it in both a Qdrant vector database and an SQLite database, and then powers an AI agent for interactive recipe suggestions. The AI agent leverages the Qdrant Recommend API to provide tailored recommendations based on user preferences.
Key Features
- Automated Menu Scraping: Fetches the current week's HelloFresh menu dynamically.
- Recipe Data Extraction & Structuring: Extracts detailed recipe information including description, ingredients, utensils, instructions, and nutrition.
- Vector Database Integration: Stores recipe embeddings in Qdrant for efficient similarity search and recommendations.
- Traditional Database Storage: Saves original recipe data in an SQLite database for comprehensive record-keeping.
- AI Agent for Chat Interface: Enables users to interact with an AI agent to get personalized recipe recommendations.
- Qdrant Recommend API: Utilizes Qdrant's advanced recommendation capabilities, accepting positive and negative preferences.
- Metadata Enrichment: Enriches recipe data with relevant metadata like week, cuisine, category, and tags.
How To Use
Workflow Steps:
- Fetch Available Courses: The
Get This Week's Menunode fetches the current week's HelloFresh menu URL. TheExtract Server Datanode then extracts the embedded JSON data from the page. Finally, theExtract Available Coursesnode parses this JSON to get a list of available recipes. - Create Recipe Documents for VectorStore: For each available recipe, the workflow:
- Makes an
httpRequestto get the full recipe page (Get Recipe). - Extracts detailed recipe information using CSS selectors in the
Extract Recipe Detailsnode. - Combines the course metadata (
Get Course Metadata) and recipe details (Extract Recipe Details) using theMerge Course & Recipenode. - Formats this combined data into a structured document for the vector store and database in the
Prepare Documentsnode.
- Makes an
- Vectorise Recipes for Recommendation Engine:
- The
Save Recipes to DBnode stores the prepared recipe documents in an SQLite database. - The
Qdrant Vector Storenode then embeds these documents and inserts them into the Qdrant vector database, creating embeddings for recommendation.
- The
- Chat with HelloFresh Recommendation AI Agent:
- The
Chat Triggernode initiates the AI agent interaction. - The
AI Agentnode handles the conversational flow, understanding user preferences. - When the agent needs to find recipes, it triggers the
Qdrant Recommend APInode. - The
Get Mistral Embeddingsnode is used to generate embeddings for the user's positive and negative preferences. - The
Use Qdrant Recommend APInode then queries Qdrant with these embeddings and filters by the current week. - The
Get Recipes From DBnode retrieves the full recipe details from the SQLite database for the recommended recipe IDs. - The AI agent uses this information to formulate a recommendation to the user.
- The
Apps Used
Workflow JSON
{
"id": "0875e11e-5b6d-4156-b22a-5a6249388050",
"name": "HelloFresh Recipe Recommendation Engine with AI Agent",
"nodes": 5,
"category": "AI & Machine Learning",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 0875e11e-5b6d...
About the Author
SaaS_Connector
Integration Guru
Connecting CRM, Notion, and Slack to automate your life.
Statistics
Related Workflows
Discover more workflows you might like
Visa Requirement Checker
A workflow to check visa requirements based on user input, leveraging Langchain, Cohere embeddings, Weaviate vector store, and Anthropic LLM.
AI Assistant for Structured Metadata Generation
Automates the generation of structured metadata in English and Chinese using AI, leveraging communication platforms and various data sources.
NeurochainAI Basic API Integration for Telegram
Integrates NeurochainAI's text and image generation APIs with a Telegram bot.