🌢️ MasalaAI – When Desi Masalas Meet Global AI πŸ’‘ Inspiration My father runs a traditional Indian masala business (πŸ§‚πŸŒΎ). Growing up surrounded by the aroma of turmeric, garam masala, and besan, I realized how powerful and underappreciated Indian spices are in the modern digital world.

I wanted to preserve and empower this knowledge with technology. So I asked myself:

β€œWhat if we could combine desi spice wisdom with cutting-edge AI?”

And that’s how MasalaAI was born β€” a smart, cultural, and fun way to interact with Indian spices using AI-powered recipes and a flavor-friendly interface!

🧠 What It Does MasalaAI helps users:

πŸ“‹ Add spices and store them in a MongoDB collection

πŸ” View available masalas and ingredients

🍽️ Generate personalized recipes using selected spices and a main ingredient

πŸ“Š Log user queries and spice combinations in a backend analytics system (MongoDB)

Even if the AI is disabled (for security reasons), a fallback recipe generator still gives helpful cooking ideas!

πŸ—οΈ How We Built It πŸ§ͺ Stack: Frontend: HTML, Bootstrap

Backend: Python + Flask

Database: MongoDB Atlas

AI (initially): Gemini API (removed for safety)

Environment Variables: .env for secrets

Version Control: Git + GitHub

Editor: VS Code

Features: Easy-to-use interface to add/view spices

Recipe generation using smart prompt logic (fallback recipe now)

Analytics logging to MongoDB for every recipe query

🚧 Challenges We Ran Into ⚠️ API key got exposed accidentally – learned the hard way to use .env and .gitignore πŸ˜“

🧠 Writing the perfect AI prompt for tasty, culturally relevant recipes

⏰ Time crunch balancing frontend + backend + learning Git commands

πŸ§ͺ Ensuring the app works offline (without Gemini) with a fallback dummy recipe

πŸ” Managing secret keys securely under deadline pressure

πŸ† Accomplishments That We're Proud Of βœ… Successfully connected Flask backend with MongoDB

🧠 Built a working AI recipe engine with prompt design

πŸ”„ Refactored the app to remove sensitive keys and still work smoothly

🌍 Created a project rooted in Indian culture, made global with tech

🧹 Learned secure coding practices by doing (not just reading)

πŸ“š What We Learned πŸ” How to manage secrets and protect APIs using .env files

🧠 Crafting clear and effective prompts for AI generation

🧱 Structuring Flask apps with clean routes and MongoDB connections

πŸ“ Importance of version control and code organization

πŸ§‘β€πŸŽ“ Gained real-world experience in building a full-stack AI-enabled app!

πŸš€ What's Next for MasalaAI This is just the beginning! With the data we're collecting in MongoDB, the future possibilities are exciting:

πŸ“Š Business Intelligence Dashboard: Create a visual dashboard for business owners (like my father) to see which spices are trending.

πŸ“· Spice-Lens Feature: Use computer vision to allow users to take a photo of a spice, and the AI will identify it and suggest recipes.

🧠 Personalized Recipe Recommendations: Analyze a user's past requests to suggest new recipes they might love.

Built With

Share this project:

Updates