An intelligent tool that uses Google Gemini AI to automatically fill out Google Forms.
Just provide the form URL and basic information to generate a pre-filled URL.
Features • Quick Start • Usage • Contributing
- 🧠 AI-Powered Responses - Use Gemini AI to generate intelligent answers
- 🔍 Form Structure Detection - Automatically parse Google Form structure
- 📝 Multiple Question Types - Support for various question formats:
- Short Answer / Long Answer
- Multiple Choice / Dropdown
- Checkbox / Linear Scale
- Single Choice Grid / Checkbox Grid
- Date / Time
- 🌐 Web Interface - Fully functional web interface with responsive design
- 🌙 Multilingual Support - Both English and Traditional Chinese languages
- 📱 Device Optimization - Optimized for desktop and mobile devices
- 📋 Detailed Help - Step-by-step instructions for users
📋 Detailed Feature List
| Feature | Description | Status |
|---|---|---|
| AI Integration | Connect with Google Gemini AI API | ✅ |
| Form Detection | Parse Google Form structure and elements | ✅ |
| Question Support | Support for various Google Form question types | ✅ |
| Web Interface | Responsive web design for all devices | ✅ |
| Multilingual UI | Support for English and Traditional Chinese | ✅ |
| Pre-filled URL | Generate pre-filled form URLs | ✅ |
| Python Version | CLI version with Python script | ✅ |
| Pure Frontend Version | No server required operation | ✅ |
This tool can be used in two ways: as a pure frontend application or with a Python backend.
- A modern web browser (Chrome, Firefox, Edge, etc.)
- A valid Google AI Studio API key
Simply download this repository and open the index.html file in your web browser. No server is required.
You can also use:
- Visual Studio Code's "Live Server" extension
- Any static file server (such as Python's
python -m http.server)
- Python 3.7 or above
- A valid Google AI Studio API key
-
Install the required packages:
cd python pip install -r requirements.txt -
Configure the Python script:
- Open
python/ai_form.pyin a text editor - Set your Google Form URL and personal information in the script
- Create a
.envfile in the python directory with your API key:GEMINI_API_KEY=your_api_key_here
- Open
-
Run the script:
python ai_form.py
- Enter your Gemini API key
- Paste a Google Form URL
- Wait for the form structure to be detected
- Enter your personal information
- Click "Generate Link" to get your pre-filled form URL
You can customize the script by modifying:
- The
URLvariable with your Google Form URL - The
PROMPT_PARTSlist with your personal information
You can format your personal information however you like. Example:
Name: John Doe
Gender: Male
Email: example@email.com
Birthdate: {"year": 1990, "month": 5, "day": 15}
Interests: Music, Hiking, Reading
🔍 Project Structure
AutoFormAI/
├── index.html # Main web interface
├── help.html # Help documentation page
├── about.html # About page
├── privacy.html # Privacy policy page
├── 404.html # Error page
├── static/ # Static assets
│ ├── css/ # Stylesheets
│ │ └── style.css # Main CSS styles
│ └── js/ # JavaScript files
│ ├── script.js # Main application logic
│ └── i18n.js # Internationalization
├── python/ # Python version
│ ├── ai_form.py # Main Python script
│ └── requirements.txt # Python dependencies
├── Logo.png # Project logo
├── preview.png # Screenshot for README
├── favicon-circle.svg # Favicon SVG
├── robots.txt # Robots file
├── sitemap.xml # Site map
└── README.md # Documentation
To ensure compliance with Google AdSense policies, we've made the following improvements:
-
Dynamic Loading of Advertisements: Modified code to ensure ads are only displayed alongside relevant content
- Added logic to load mid-content ads only after form structure is detected
- Added logic to load result ads only after results are generated
- Removed ads from empty/placeholder sections
-
Content-First Approach: Restructured ad placement in all pages
- Moved ads to appear after substantial content sections
- Ensured ads are not placed in navigation-only or utility sections
-
Removed Alert/Warning Dialogs: Eliminated features that might trigger warning popups
- Removed "Report Issue" functionality from about.html and privacy.html
- Eliminated all JavaScript code that could produce alert dialogs
These changes ensure that our website fully complies with Google AdSense policies by preventing ads from appearing on pages with no publisher content, under-construction pages, or pages used solely for navigation or alert purposes.
After implementing these changes, you should submit a website review request to Google AdSense to lift any restrictions.
- Your Gemini API key is only used locally and is never stored or transmitted to any server
- The web version requires successful form structure detection before generating links
- This tool is for educational and research purposes only
- Please comply with Google Form's terms of service
We welcome contributions to improve this tool:
- Fork this project
- Create a new branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Support more question types
- Improve AI accuracy
- Add better error handling for form detection
- Enhance user interface and experience
This project uses MIT License - see LICENSE file
This tool is for educational and research purposes only. Users should assume all risks and comply with relevant laws and regulations.
For any questions or suggestions:
- 🐛 Open Issue
- 🔀 Submit Pull Request
- 📧 Email to [sun055676@gmail.com]
- Google Gemini AI
- Various CORS proxies for helping with form detection
- Modern web technologies (HTML, CSS, JavaScript)