Skip to content

An AI-powered Agent that searches for product information and compares product prices across e-commerce platforms to find the best price.

License

Notifications You must be signed in to change notification settings

Dhanush-Raj1/Product-Search-Agent-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

87 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›οΈ 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' written by Simon sinek  
- 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.


About

An AI-powered Agent that searches for product information and compares product prices across e-commerce platforms to find the best price.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published