Skip to content

devendrasaim/ui-navigator-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UI Navigator Agent

A universal web navigation agent powered by Gemini 1.5 Flash and Playwright. This agent can navigate websites, interact with elements, and achieve goals based on voice or text commands.

Features

  • Visual Reasoning: Uses Gemini 1.5 Flash to "see" screenshots and decide on actions.
  • Voice Control: Supports spoken goals via speech recognition.
  • Set-of-Mark (SoM) Tagging: Automatically identifies and numbers interactive elements on the screen for the AI.
  • Cross-Platform: Works on any website.

Prerequisites

Setup

  1. Clone the repository:

    git clone <your-repo-url>
    cd agent
  2. Install dependencies:

    pip install -r requirements.txt
    playwright install chromium
  3. Configure Environment Variables: Create a .env file in the agent directory:

    GEMINI_API_KEY=your_api_key_here

Usage

Run the main script:

python main.py

Speak your goal when prompted (e.g., "Go to Wikipedia and search for quantum computing").

Technologies Used

  • Google Gemini 1.5 Flash: Vision-language model for reasoning.
  • Playwright: Browser automation.
  • SpeechRecognition: Voice-to-text functionality.
  • Pillow: Image processing.

About

Browser agent that takes voice or text commands and navigates any website autonomously using Gemini vision and Playwright.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages