Skip to content

An AI-powered Web Navigator Agent that uses local LLMs and browser automation (Playwright) to convert natural language queries into structured insights from the web.

Notifications You must be signed in to change notification settings

bharani-coder-27/IntelliBrowse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  IntelliBrowse โ€“ AI Web Navigator Agent

โ€œSearch smarter, browse faster, and learn seamlessly โ€” powered by local AI.โ€


๐Ÿงฉ a) Problem Statement Reference

๐Ÿง  Problem Statement Chosen

Web Navigator AI Agent โ€“ Build an AI agent that can take natural language instructions and autonomously drive the web on a local computer.

๐Ÿ’ก Reason to Choose the Problem Statement

We selected this challenge because it merges our core expertise in AI, browser automation, and full-stack development. It demonstrates how locally running LLMs can interpret human instructions, automate browser actions, and extract structured insights โ€” all without cloud dependency, ensuring privacy and offline usability.


๐Ÿš€ b) Solution Overview

๐Ÿงญ Proposed Approach (2โ€“3 lines)

IntelliBrowse uses a local LLM (Ollama + Mistral) to convert natural-language commands into executable plans, which are carried out by a Playwright-based browser controller. Results are parsed, stored, and returned to a React frontend for visualization and download.

โš™๏ธ Key Features / Modules

  • LLM Planner: Converts user instructions into structured JSON plans.
  • Browser Controller: Uses Playwright to automate real web interactions.
  • Extractors: Domain-specific scrapers for Amazon, Flipkart, and Web.
  • Search Dock UI: Modern, animated interface for query input and results.
  • Dual Modes:
    • Product Mode โ†’ Amazon/Flipkart grid view
    • Research Mode โ†’ Web article list view
  • Download Center: Export results as .csv or .json files from database.
  • Offline Execution: Entire system runs locally (no external API calls).

๐Ÿ—๏ธ c) System Architecture

๐Ÿงฉ Architecture Diagram / Workflow

System Architecture Flowchart

๐Ÿ” Data Flow Explanation

  1. Input: User submits a query in plain English.
  2. Planning: FastAPI invokes the LLM planner to infer intent (shop, learn, explore, news).
  3. Execution: Browser Controller (Playwright) navigates and extracts relevant information.
  4. Storage: Parsed results are saved to data/navigator.db.
  5. Frontend Rendering: React components render grid or list view.
  6. Download: User can download results in CSV or JSON format via /download/... endpoints.

๐Ÿงฐ d) Technology Stack

Layer Tools / Frameworks
Backend Python 3 ยท FastAPI ยท Playwright ยท Pydantic ยท SQLite
Frontend React + TypeScript ยท Vite ยท Tailwind CSS v4 ยท Framer Motion
Database SQLite (navigator.db)
ML / AI Frameworks Ollama ยท Mistral LLM
APIs / Libraries Axios ยท Sonner (Toast UI) ยท Lucide Icons ยท AsyncIO ยท CSV / JSON exporters

๐Ÿงฎ e) Algorithms & Models

Component Description
Algorithm(s) Chosen LLM-based semantic planner generating normalized JSON schema
Reason for Choice Provides flexible understanding of user queries while remaining locally executable
Model Training & Testing Approach Utilizes pretrained Mistral model via Ollama; evaluated on multiple test prompts (โ€œlaptops under 50 kโ€, โ€œAI in healthcareโ€) to verify correct intent & structured plan generation

๐Ÿ“Š f) Data Handling

Stage Details
Data Sources Used Amazon ยท Flipkart ยท Web (DuckDuckGo / real pages)
Preprocessing Methods HTML parsing, price normalization, duplicate removal, text cleaning
Storage / Pipeline Setup Results inserted into navigator.db โ†’ retrieved for download or display; exports saved to data/ folder (.csv, .json)

๐Ÿงฑ g) Implementation Plan

๐Ÿชœ Initial Setup & Environment

  • Create virtual environment and install dependencies (FastAPI, Playwright, Ollama).
  • Configure Tailwind v4 + Vite for React frontend.
  • Initialize SQLite DB (navigator.db).

โš™๏ธ Core Module Development

  • Implement plan_from_instruction() โ†’ LLM planner.
  • Develop BrowserController โ†’ page automation handler.
  • Build extractors: amazon.py, flipkart.py, web.py.

๐Ÿ”— Integration & Testing

  • Connect frontend search box (SearchDock) with FastAPI /orchestrate endpoint.
  • Validate JSON/CSV exports.
  • Add Sonner toasts for network errors or success.

๐Ÿš€ Final Deployment-ready Build

  • Dockerfile for combined backend + frontend build.
  • Local run:
    ollama run mistral & uvicorn app.main:app --reload npm run dev 

๐Ÿงช h) Performance & Validation

Metric Strategy
Evaluation Metrics Response latency < 5 s per query; 95 % parsing accuracy on product pages
Testing Strategy Unit testing of extractor functions; end-to-end runs via sample commands; visual validation through frontend

โ˜๏ธ i) Deployment & Scalability

๐Ÿงฉ Deployment Plan

  • Local Mode: Runs fully offline with Ollama + Playwright.
  • Dockerized Mode: Combined container for backend + frontend.
  • Optional Cloud Mode: Can be hosted with headless browser instances (e.g., Render / Railway / AWS EC2).

๐Ÿ“ˆ Scalability Considerations

  • Modular extractors for adding new websites easily.
  • Task queue (Celery + Redis) for parallel searches.
  • Persistent caching of search results for faster re-queries.

๐Ÿ“ Folder Structure

AI-Web-Navigator/ โ”‚ โ”œโ”€โ”€ server/ โ”‚ โ”œโ”€โ”€ app/ โ”‚ โ”‚ โ”œโ”€โ”€ main.py โ”‚ โ”‚ โ”œโ”€โ”€ browser/ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ controller.py โ”‚ โ”‚ โ”œโ”€โ”€ skills/ โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ extractors/ โ”‚ โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ amazon.py โ”‚ โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ flipkart.py โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ web.py โ”‚ โ”‚ โ”œโ”€โ”€ llm/ โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ planner.py โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ prompts.py โ”‚ โ”‚ โ””โ”€โ”€ services/ โ”‚ โ”‚ โ””โ”€โ”€ aggregator.py โ”‚ โ”œโ”€โ”€ data/ โ”‚ โ”‚ โ””โ”€โ”€ navigator.db โ”‚ โ”œโ”€โ”€ runs/ โ”‚ โ””โ”€โ”€ .venv/ โ”‚ โ””โ”€โ”€ client/ โ”œโ”€โ”€ index.html โ”œโ”€โ”€ package.json โ”œโ”€โ”€ tailwind.config.ts โ”œโ”€โ”€ vite.config.ts โ””โ”€โ”€ src/ โ”œโ”€โ”€ main.tsx โ”œโ”€โ”€ App.tsx โ”œโ”€โ”€ index.css โ”œโ”€โ”€ lib/ โ”‚ โ””โ”€โ”€ api.ts โ”œโ”€โ”€ components/ โ”‚ โ”œโ”€โ”€ SearchDock.tsx โ”‚ โ”œโ”€โ”€ ProductCard.tsx โ”‚ โ”œโ”€โ”€ ResultsGrid.tsx โ”‚ โ”œโ”€โ”€ ResultsList.tsx โ”‚ โ”œโ”€โ”€ ThemeToggle.tsx โ”‚ โ””โ”€โ”€ LoadingDots.tsx โ””โ”€โ”€ types/ โ”œโ”€โ”€ product.ts โ”œโ”€โ”€ research.ts โ””โ”€โ”€ api.ts 

๐ŸŒŸ โ€œIntelliBrowse โ€” Where AI meets effortless exploration.โ€

Developed by Team CIVICAURA | SKCET | HackXlerate 2025

About

An AI-powered Web Navigator Agent that uses local LLMs and browser automation (Playwright) to convert natural language queries into structured insights from the web.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •