Automate application form submission using Browser-Use and Gemini 3 Pro Preview with AI-powered form filling.
This template demonstrates automated application submission. The agent will:
- Navigate to the application page
- Fill out personal information (name, email, phone, address)
- Upload your document file
- Complete demographic and optional fields
- Submit the application and confirm success
The template uses Google's gemini-3-pro-preview model which excels at complex multi-step tasks like form filling.
You'll need a Google API key to use the Gemini model:
- Go to https://aistudio.google.com/apikey
- Create a new API key
- Copy the key
cp .env.example .envEdit .env and add your Google API key:
GOOGLE_API_KEY=your-google-api-key-hereuv syncuv run main.py --document example_document.pdfThis will use the included applicant_data.json with example information.
- Create your own data JSON file (see format below)
- Prepare your document as a PDF file
- Run the script:
uv run main.py --data my_info.json --document my_document.pdfCreate a JSON file with your information:
{
"first_name": "Your",
"last_name": "Name",
"email": "your.email@example.com",
"phone": "5551234567",
"age": "21",
"US_citizen": true,
"sponsorship_needed": false,
"postal_code": "12345",
"country": "United States",
"city": "YourCity",
"address": "123 Your Street",
"gender": "Your Gender",
"race": "Your Race/Ethnicity",
"Veteran_status": "I am not a veteran",
"disability_status": "No, I do not have a disability"
}For issues specific to Browser-Use, see:
- Documentation: https://docs.browser-use.com
- GitHub: https://github.com/browser-use/browser-use