AIWebScroller is a Chrome extension that automatically answers Google Forms questions using AI. It supports both multiple-choice (single/multiple answers) and short-answer questions, and can be toggled ON/OFF by the user. The backend is powered by Node.js/Express and connects to the Groq AI API for generating answers.
- Auto-answer Google Forms:
Detects questions and fills in answers using AI. - Supports MCQ & Short Answers:
Handles single/multiple-choice (checkbox/radio) and text fields. - Fuzzy Matching:
Matches AI answers to options even if wording is different. - Highlight-to-Answer:
Highlight any question text on a page to get an instant AI answer and auto-fill/tick. - ON/OFF Toggle:
Easily enable or disable the extension from the popup. - Backend API:
Node.js/Express backend with endpoints for AI queries and health checks. - Environment Config:
Uses.envfor secure API key management.
- Frontend:
- JavaScript (Chrome Extension APIs)
- HTML/CSS (Popup UI)
- Backend:
- Node.js
- Express.js
- Axios (for Groq API calls)
- CORS
- dotenv
- AI Service:
- Groq API (OpenAI-compatible endpoint)
AIWebScroller/
├── content.js # Main extension logic
├── popup.html # Popup UI for ON/OFF toggle
├── popup.js # Popup logic
├── manifest.json # Chrome extension manifest
├── server.js # Node.js backend server
├── .env # Environment variables (GROQ_API_KEY, etc.)
└── ... # Other assets
POST
Generates an AI answer for a given question/context.
Request Body:
{
"messages": [
{ "role": "user", "content": "Context: ... Question: ..." }
]
}Response:
{
"choices": [
{
"message": {
"content": "AI-generated answer here."
}
}
]
}GET
Health check endpoint.
Response:
{ "status": "ok", "message": "Server is running" }Create a .env file in the root:
GROQ_API_KEY=your_groq_api_key_here
PORT=8000
cd AIWebScroller
npm install
node server.js- The backend runs on http://localhost:8000
-
Build/Zip the extension folder (if sharing).
-
Load in Chrome:
- Go to
chrome://extensions/ - Enable Developer mode
- Click Load unpacked and select the extension folder.
- Go to
-
ON/OFF Toggle:
- Click the extension icon in Chrome.
- Use the checkbox to enable or disable auto-answering.
- Auto-answer:
Open a Google Form or supported page. The extension will auto-fill answers. - Highlight-to-Answer:
Highlight any question text, and the extension will fetch and fill/tick the answer. - Toggle:
Use the popup to turn the extension ON or OFF as needed.
- Change AI Model:
Editserver.jsand update themodelfield in the Groq API call. - Add More Domains:
Update the CORSoriginarray inserver.jsif you want to support more sites.
- Your API key is stored in
.envand never exposed to the frontend. - All AI requests are proxied through your backend.
MIT License
Q: Can I use a different AI backend?
A: Yes! Just update the API call in server.js to your preferred provider.
Q: How do I share with friends?
A: Zip the extension folder and share. Friends can load it via chrome://extensions/ > Load unpacked.
Q: What if I hit API limits?
A: You can self-host a local model (like Ollama) and update the backend to use it.
Pull requests and suggestions welcome!
Made with ❤️ for productivity.