ai-quizgenie
by bala-ceg
ai-quizgenie is an Apify Actor that extracts content from webpages and PDFs to generate multiple-choice quiz questions (MCQs) using LLMs (GPT-3.5, GPT...
Opens on Apify.com
About ai-quizgenie
ai-quizgenie is an Apify Actor that extracts content from webpages and PDFs to generate multiple-choice quiz questions (MCQs) using LLMs (GPT-3.5, GPT-4, etc.).
What does this actor do?
ai-quizgenie is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
AI Quiz Genie – Generate AI-Powered Quizzes ai-quizgenie is an Apify Actor that extracts content from webpages and PDFs to generate multiple-choice quiz questions (MCQs) using LLMs (GPT-3.5, GPT-4, etc.). ✅ Supports Web & PDF Extraction ✅ Dynamic Model Selection (GPT-3.5, GPT-4, etc.) ✅ LangGraph for Workflow Automation ✅ Apify-Compatible for Deployment --- ## 📂 Project Structure /ai-quizgenie/ │── src/ │ ├── __main__.py # Executes main.py │ ├── main.py # Apify Actor Execution and Langgraph flow │ ├── tools.py # Web & PDF Extraction │ ├── utils.py # Quiz Generation Logic │ ├── models.py # Pydantic Schema │── dataset_schema.json # Defines Output Format │── requirements.txt # Python Dependencies │── Dockerfile # Containerized Deployment │── input.json # Example Input │── README.md # Documentation --- ## 🛠 Installation & Setup ### 1️⃣ Clone the Repository bash git clone https://github.com/yourusername/ai-quizgenie.git cd ai-quizgenie ### 2️⃣ Install Dependencies bash pip install -r requirements.txt ### 3️⃣ Set API Keys (Optional) If using OpenAI, set your API keys: bash export OPENAI_API_KEY="your-api-key-here" export OPENAI_API_BASE="your-base-url" --- ## 🚀 Running the Actor Locally ### Run with Sample Input bash apify run -i input.json ### Example input.json json { "url": "https://en.wikipedia.org/wiki/Artificial_intelligence", "num_questions": 5, "difficulty": "Medium", "model": "gpt-4-turbo" } --- ## 🔧 How It Works 1. Extracts content from webpage/PDF 2. Uses LLM to generate quiz questions 3. Outputs structured MCQs in JSON format --- ## 📜 Example Output (dataset_schema.json) json { "model": "gpt-4-turbo", "questions": [ { "question": "Who is considered the father of AI?", "options": ["Alan Turing", "John McCarthy", "Geoffrey Hinton", "Yann LeCun"], "answer": "John McCarthy", "explanation": "John McCarthy coined the term 'Artificial Intelligence' in 1956." } ] } --- ## 📦 Deploying to Apify ### 1️⃣ Push to Apify bash apify push ### 2️⃣ Run on Apify Cloud bash apify call ball-ceg/ai-quizgenie -i input.json --- ## 📜 Customization - Modify input.json to change the difficulty, number of questions, or LLM model - Edit utils.py to tweak the quiz generation prompt - Extend graph.py to add more processing steps --- ## 🤝 Contributing Want to improve AI QuizGenie? Open a PR or suggest features! 🚀 --- ## Apify Screenshots
---
---
---
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try ai-quizgenie now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- bala-ceg
- Pricing
- Paid
- Total Runs
- 257
- Active Users
- 10
Related Actors
Google Search Results Scraper
by apify
Website Content Crawler
by apify
🔥 Leads Generator - $3/1k 50k leads like Apollo
by microworlds
Video Transcript Scraper: Youtube, X, Facebook, Tiktok, etc.
by invideoiq
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support