Skip to content

Latest commit

 

History

History
154 lines (116 loc) · 5.4 KB

File metadata and controls

154 lines (116 loc) · 5.4 KB

🛍️ AI-Powered Product Search Agent

End to End AI Agent Project: "AI agent that can search for information related to various products across ecommerce platforms and the web"


🚀 Live Applicaiton

🌐 The application is deployed and live

👉 Access the web app here

Note

The web app may take 1-2 minutes to load.

Tip

For the best experience, please refer to the Usage Guide section below to learn how to navigate and use the web app effectively.


📌 Overview

The Product Search Agent is an AI-powered web application that allows users to search for product details, including price comparisons, from multiple online sources. It leverages various agentic tools and Large Language Models (LLMs) to fetch, analyze, and present product information.


🌟 Features

  • 🔍 Product Information Retrieval: Fetches product details from multiple e-commerce platforms.
  • 💰 Price Comparison: Compares prices from Amazon, Flipkart, and other supported sites.
  • 🌍 Web Search Capabilities: Utilizes AI-powered search tools for accurate results.
  • 🖥 Modern UI: A clean, user-friendly interface built with Flask and HTML/CSS.
  • 📄 Structured Response: Provides formatted responses with product details, pricing, and best recommendations.

🛠 Tech Stack

Technology Description
Python Programming language used
Agno AI (formerly Phidata) AI framework for building agents and tools
Exa Tools Web search tool for retrieving product details
SerpApiTools Search engine results page to find product informations
GoogleSearchTools Google Search tools to search for products
Together AI LLM for natural language processing
Flask Web framework for UI and API integration
HTML & CSS Frontend design and styling

📂 Project Structure

/📂Product-Search-Agent-WebApp
│── /📂static
│   ├── styles.css      # CSS for UI styling
│── /📂templates
│   ├── index.html      # Main webpage template
│── app.py              # Flask backend
│── agent_builder.py    # AI agent logic
│── exception.py        # Custom exception handling
│── requirements.txt    # Python dependencies
│── .env                # Environment variables

🚀 Installation & Setup

1️⃣ Clone the Repository

git clone https://github.com/Dhanush-Raj1/Product-Search-Agent-Project.git
cd Product-Search-Agent-WebApp

2️⃣ Create a Virtual Environment

python -m venv venv
source venv/bin/activate   # On macOS/Linux
venv\Scripts\activate      # On Windows

3️⃣ Install Dependencies

pip install -r requirements.txt

4️⃣ Set Up Environment Variables

Create a .env file in the root directory and add:

TOGETHER_API_KEY=your_together_ai_api_key
EXA_API_KEY=your_exa_api_key
SERPAPI_API_KEY=your_serpapi_key

5️⃣ Run the Flask App

python app.py

The app will be available at: http://127.0.0.1:5000/


🌐 Usage Guide

Access the web app

1️⃣ Open the web app in your browser.
2️⃣ Enter a search query:
You can search for any specific product prices, just simply enter the query in the search tab.

- Find the price of the book 'Start with why'
- Find me the price of 'Redmi note 13 pro'  

3️⃣ Click the Search button.
4️⃣ View the retrieved product details and price comparisons.


📸 Screenshots

🔵 Home Page


🟢 Search Results



📌 Future Enhancements

✅ Add more e-commerce websites for price comparison.
✅ Implement real-time currency conversion.
✅ Improve UI with a more interactive design.
✅ Optimize LLM prompts for better response accuracy.
✅ Add user authentication for personalized recommendations.


🤝 Contributing

💡 Have an idea? Feel free to contribute or open an issue and pull requests!

📄 License

This project is licensed under the MIT License – see the LICENSE file for details.