End to End AI Agent Project: "AI agent that can search for information related to various products across ecommerce platforms and the web"
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.
- 🔍 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.
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 |
/📂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
git clone https://github.com/Dhanush-Raj1/Product-Search-Agent-Project.git
cd Product-Search-Agent-WebApp
python -m venv venv
source venv/bin/activate # On macOS/Linux
venv\Scripts\activate # On Windows
pip install -r requirements.txt
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
python app.py
The app will be available at: http://127.0.0.1:5000/
1️⃣ Open the web app in your browser.
2️⃣ Enter a search query (e.g., Find the price iphone 14 pro).
3️⃣ Click the Search button.
4️⃣ View the retrieved product details and price comparisons.
✅ 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.
💡 Have an idea? Feel free to contribute or open an issue and pull requests!
This project is licensed under the MIT License – see the LICENSE file for details.