Skip to content

About

AutoFormAI is an intelligent automation tool that leverages Google's Gemini AI to automatically fill out Google Forms. By simply providing a form URL and basic information, it generates pre-filled form URLs, making form completion efficient and intelligent.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Repository files navigation

🤖 Google Form AI Auto-Fill Tool

English | 繁體中文

AutoFormAI Logo

MIT License Python Gemini

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

AutoFormAI Screenshot

✨ Features

  • 🧠 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 ✅

🚀 Quick Start

This tool can be used in two ways: as a pure frontend application or with a Python backend.

Option A: Pure Frontend Version (No Installation Required)

Prerequisites

  • A modern web browser (Chrome, Firefox, Edge, etc.)
  • A valid Google AI Studio API key

Running the Application

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)

Option B: Python Version

Prerequisites

Setup

  1. Install the required packages:

    cd python
    pip install -r requirements.txt
  2. Configure the Python script:

    • Open python/ai_form.py in a text editor
    • Set your Google Form URL and personal information in the script
    • Create a .env file in the python directory with your API key:
      GEMINI_API_KEY=your_api_key_here
      
  3. Run the script:

    python ai_form.py

📖 Usage

Frontend Version

  1. Enter your Gemini API key
  2. Paste a Google Form URL
  3. Wait for the form structure to be detected
  4. Enter your personal information
  5. Click "Generate Link" to get your pre-filled form URL

Python Version

You can customize the script by modifying:

  • The URL variable with your Google Form URL
  • The PROMPT_PARTS list with your personal information

Custom Information Format

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

🔧 Technical Details

🔍 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

Google AdSense Compliance Update

To ensure compliance with Google AdSense policies, we've made the following improvements:

  1. 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
  2. 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
  3. 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.

⚠️ Notes

  • 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

🤝 Contributing

We welcome contributions to improve this tool:

  1. Fork this project
  2. Create a new branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Improvement Directions

  • Support more question types
  • Improve AI accuracy
  • Add better error handling for form detection
  • Enhance user interface and experience

📄 License

This project uses MIT License - see LICENSE file

📢 Disclaimer

This tool is for educational and research purposes only. Users should assume all risks and comply with relevant laws and regulations.

📮 Contact

For any questions or suggestions:

🙏 Acknowledgements

  • Google Gemini AI
  • Various CORS proxies for helping with form detection
  • Modern web technologies (HTML, CSS, JavaScript)

Made with ❤️ by Sun

About

AutoFormAI is an intelligent automation tool that leverages Google's Gemini AI to automatically fill out Google Forms. By simply providing a form URL and basic information, it generates pre-filled form URLs, making form completion efficient and intelligent.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages