โSearch smarter, browse faster, and learn seamlessly โ powered by local AI.โ
Web Navigator AI Agent โ Build an AI agent that can take natural language instructions and autonomously drive the web on a local computer.
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.
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.
- 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
.csvor.jsonfiles from database. - Offline Execution: Entire system runs locally (no external API calls).
- Input: User submits a query in plain English.
- Planning: FastAPI invokes the LLM planner to infer intent (
shop,learn,explore,news). - Execution: Browser Controller (Playwright) navigates and extracts relevant information.
- Storage: Parsed results are saved to
data/navigator.db. - Frontend Rendering: React components render grid or list view.
- Download: User can download results in CSV or JSON format via
/download/...endpoints.
| 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 |
| 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 |
| 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) |
- Create virtual environment and install dependencies (
FastAPI,Playwright,Ollama). - Configure Tailwind v4 + Vite for React frontend.
- Initialize SQLite DB (
navigator.db).
- Implement
plan_from_instruction()โ LLM planner. - Develop
BrowserControllerโ page automation handler. - Build extractors:
amazon.py,flipkart.py,web.py.
- Connect frontend search box (
SearchDock) with FastAPI/orchestrateendpoint. - Validate JSON/CSV exports.
- Add Sonner toasts for network errors or success.
- Dockerfile for combined backend + frontend build.
- Local run:
ollama run mistral & uvicorn app.main:app --reload npm run dev
| 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 |
- 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).
- Modular extractors for adding new websites easily.
- Task queue (Celery + Redis) for parallel searches.
- Persistent caching of search results for faster re-queries.
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 Developed by Team CIVICAURA | SKCET | HackXlerate 2025
