AI-powered shopping price comparison using Google Gemini and autonomous browser automation — built for the Google Gemini Live Agent Challenge.
- Interactive AI Questionnaire — Phoenix AI Consultant asks targeted questions before searching to perfectly match your needs
- Multi-Site Search — Compares prices across Amazon, eBay, and Walmart simultaneously
- Visual Product Cards & Analytics — Beautiful, responsive grid view with live saving statistics and automated coupon discovery
- Gemini AI Analysis — Uses
gemini-2.5-flashfor sentiment analysis, smart alternatives, and deal recommendations - Phoenix Engine v11 — Autonomous browser automation with SoM (Set-of-Mark) visual tagging
- Real-Time Progress — Live search status with animated narration
- Search History & Favorites — Re-run previous searches with one click
┌──────────────────────────────────────────────────────────┐
│ React Frontend (Vite) │
│ Sniper.tsx → tRPC Client → React Query │
├──────────────────────────────────────────────────────────┤
│ Express + tRPC Backend │
│ ┌─────────────┐ ┌──────────────┐ ┌───────────────┐ │
│ │ Sniper │ │ Gemini │ │ Phoenix │ │
│ │ Router │→ │ Integration │ │ Engine │ │
│ │ (5 procs) │ │ (CB + stream)│ │ (subprocess) │ │
│ └──────┬──────┘ └──────────────┘ └───────────────┘ │
│ │ │
│ ┌──────▼──────┐ ┌──────────────┐ │
│ │ SQLite DB │ │ GCS Storage │ │
│ │ (Drizzle) │ │ (fallback) │ │
│ └─────────────┘ └──────────────┘ │
└──────────────────────────────────────────────────────────┘
| Layer | Technology |
|---|---|
| AI | Google Gemini 2.0 Flash (via @google/generativeai) |
| Automation | Phoenix Engine v11 (Python + Playwright) |
| Frontend | React 18 + Tailwind CSS + Vite |
| API | tRPC v11 + Express |
| Database | SQLite + Drizzle ORM |
| Storage | Google Cloud Storage (with local fallback) |
| Language | TypeScript (full-stack) + Python (engine) |
- Node.js 18+
- Python 3.10+
- Google Gemini API key (get one here)
- Configure Environment: Create a
.envin the root folder:GEMINI_API_KEY=your-gemini-api-key # Optional: GCS_BUCKET_NAME, GCS_PROJECT_ID, GCS_CREDENTIALS_PATH
- Install & Start:
chmod +x setup.sh run.sh ./setup.sh ./run.sh
- Open: Navigate to http://localhost:5173/sniper.
├── client/src/
│ ├── pages/Sniper.tsx # Shopping UI
│ ├── utils/trpc.ts # tRPC client
│ ├── App.tsx # React routing
│ └── index.css # Tailwind + glass design
├── server/
│ ├── index.ts # Express server
│ ├── trpc.ts # tRPC init
│ ├── routers.ts # Router aggregation
│ ├── routers/sniper.ts # 5 tRPC procedures
│ ├── db.ts # Drizzle ORM CRUD
│ ├── gemini_integration.ts # Gemini API + circuit breaker
│ ├── phoenix_engine.ts # Python subprocess wrapper
│ └── storage.ts # GCS + local fallback
├── drizzle/schema.ts # Database schema
├── ui_navigator/ # Python Phoenix Engine
└── setup.sh / run.sh # Automation scripts
- Gemini failures → Circuit breaker (3 fails → 30s heuristic fallback)
- GCS failures → Transparent local file storage fallback
- Phoenix Engine crashes → Per-site circuit breaker (5 attempts max)
- Database errors → Caught and logged, never crash the app
- 1-Click AI Auto-Buy Checkout: Connect user accounts so the Agent can autonomously navigate the store, solve captchas, add to cart, and complete purchases entirely in the background.
- Automated Negotiation Bot: AI agent that interacts with eBay sellers in real-time, sending counter-offers for used items based on your max budget.
- Visual Object Search via Webcam: Point your camera at an item, and Phoenix will instantly identify it and find the cheapest global seller.
- Predictive Price Forecasting AI: Analyzes historical market data to predict flash sales, advising the user: "Wait 3 days, probability of a 15% discount is very high!"
- Cross-Border "Smuggler" Routing API: The AI autonomously calculates the absolute cheapest shipping pathways utilizing third-party global forwarders instead of direct shipping.
As required by the Google Gemini Live Agent Challenge, this project demonstrates deep integration with Google Cloud Services.
- Proof of GCP/Vertex AI Usage: See ui_navigator/gemini.py and ui_navigator/vision.py.
- Core Engine: Phoenix integrates directly with Vertex AI endpoints (via the
google-genaiSDK) when theUSE_VERTEX_AI=trueflag is set. - Storage: Integrates with Google Cloud Storage (GCS) for persistent logs and session data (see
server/storage.ts). - GCP Native Calls: The project utilizes standard Google Cloud SDKs for authentication, project-scoping, and high-performance inference on Vertex AI.
To run using Vertex AI:
- Set
USE_VERTEX_AI=truein.env. - Provide
GOOGLE_CLOUD_PROJECTandGOOGLE_CLOUD_LOCATION. - The engine will route all LLM and Vision requests through Google Cloud Vertex AI infrastructure.
MIT
