AI Schema Markup Generator
AI auto-detects your content type and generates rich JSON-LD schema markup. Supports Article, FAQ, HowTo, Product, Recipe, LocalBusiness, Course, Event & more. Multi-AI provider.
by Sharanvijay · github.com/sharanvijaydev/wp-ai-schema-generator · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/sharanvijaydev/wp-ai-schema-generator/archive/refs/heads/main.zip📋 WP AI Schema Markup Generator
Auto-detect content types and generate rich JSON-LD schema markup using AI. Supports Article, FAQ, HowTo, Product, Recipe, LocalBusiness, Course, Event & more.
❌ The Problem
- Schema markup gets you rich snippets in Google (stars, FAQs, recipes, etc.)
- 90% of site owners don't know how to add it manually
- SEO plugins require you to manually select the schema type and fill fields
- Most content has NO schema at all — losing rich snippet opportunities
✅ The Solution
This plugin auto-detects your content type using smart rules + AI, generates proper JSON-LD schema, and injects it into your pages automatically. Zero configuration needed for basic use.
✨ Features
- 🧠 Smart Auto-Detection — Rule-based + AI detection of content type
- 📋 11 Schema Types — Article, FAQ, HowTo, Product, Recipe, LocalBusiness, Course, Event, Review, Video, Software
- ⚡ Works Without AI — Rule-based detection works instantly, AI enhances accuracy
- 🤖 AI Data Extraction — Extracts FAQ pairs, HowTo steps, Recipe ingredients from content
- 📊 Coverage Report — See which pages have schema and which don't
- ⚡ Bulk Generate — Add schema to all pages in one click
- 📝 Editable JSON-LD — Review and edit schema before saving
- 🔍 Google Validation Link — One-click validate with Google Rich Results Test
- 🔌 5 AI Providers — OpenAI, Gemini, Claude, OpenRouter, Ollama (all March 2026 models)
- 🆓 Free Options — Gemini free tier, OpenRouter free models, Ollama local
- 🛍️ WooCommerce Support — Auto-generates Product schema with price, availability, ratings
- 🎓 LMS Support — Detects LearnDash, LearnPress, Tutor LMS, LifterLMS courses
📋 Supported Schema Types
| Type | Auto-Detected When | Rich Snippet |
|---|---|---|
| Article | Standard blog posts/pages | Headline, date, author |
| FAQPage | Content has Q&A pairs | FAQ accordion in Google |
| HowTo | "How to..." titles, numbered steps | Step-by-step in Google |
| Product | WooCommerce products | Price, availability, rating |
| Recipe | Ingredients, cook time, servings | Recipe card in Google |
| LocalBusiness | About/Contact pages with address | Business info, hours |
| Course | LMS course post types | Course info in Google |
| Event | Event plugin post types | Date, location in Google |
| Review | Review titles, ratings, pros/cons | Star rating in Google |
| VideoObject | YouTube/Vimeo embeds | Video thumbnail in Google |
| SoftwareApplication | Download, version, changelog | App info in Google |
🔌 Supported AI Providers
| Provider | Free Tier | Models | Get Key |
|---|---|---|---|
| Google Gemini | ✅ Yes | Gemini 2.0 Flash, 2.5 Pro | aistudio.google.com |
| OpenRouter | ✅ Free models | Llama 3.3 70B, Qwen 2.5 72B | openrouter.ai |
| Ollama (Local) | ✅ Free | llama3.3, mistral | ollama.com |
| OpenAI | ❌ Paid | GPT-4o Mini, GPT-4o, o3-mini | platform.openai.com |
| Anthropic Claude | ❌ Paid | Claude 3.5 Haiku, 3.7 Sonnet | console.anthropic.com |
🚀 Installation
cd /path/to/wordpress/wp-content/plugins/
git clone https://github.com/sharanvijaydev/wp-ai-schema-generator.git
- Activate in WordPress → Plugins
- Go to AI Schema → Settings
- (Optional) Add an AI provider for enhanced detection
- Set your organization info
- Go to AI Schema → Coverage Report → Scan → Bulk Generate
📖 Usage
Automatic Mode (Recommended)
- Activate the plugin — schema is auto-generated for all pages using rule-based detection
- No configuration needed for basic Article schema
- Add AI provider for FAQ/HowTo/Recipe data extraction
Per-Post Control
- Edit any post/page
- Find 📋 AI Schema Markup in the sidebar
- Click 🤖 Generate with AI or ⚡ Quick Generate
- Review JSON-LD, edit if needed
- Click Save & Activate
- Click 🔍 Validate with Google to test
Coverage Report
- Go to AI Schema → Coverage Report
- Click Scan All Content
- See which pages have/lack schema
- Click Bulk Generate to fix all at once
- Validate individual pages with Google
📋 Changelog
1.0.0
- Initial release
- 11 schema types with auto-detection
- Rule-based + AI-enhanced detection
- AI extraction for FAQ, HowTo, Recipe data
- Coverage report with bulk generation
- Post editor meta box with JSON editor
- Google Rich Results validation link
- Multi-provider AI support (5 providers, March 2026 models)
- WooCommerce Product schema
- LMS Course schema detection
🗺️ Roadmap
- [ ] Breadcrumb schema
- [ ] Organization schema for homepage
- [ ] Person schema for author pages
- [ ] Schema validation within plugin
- [ ] Import/export schema templates
- [ ] Multi-schema per page (Article + FAQ combined)
📄 License
GPL v2 or later
👨💻 Author
Sharanvijay
- Website: thozhilnutpamtech.com
- GitHub: @sharanvijaydev