PageGenerator PRO (Developer Guide)
PageGenerator PRO adds advanced intelligence and automation layers on top of the base PageGenerator infrastructure.
Core Services
GscService & GapAnalyzer
GscService: Connects to the Google Search Console API. Specifically looks for "striking distance" keywords—queries with high impressions but low CTR or average positions just off the first page.GapAnalyzer: Cross-references the keywords returned by GSC with the existing localPagemodels in Waravel. If a keyword is found in GSC but doesn't closely match an existing page slug or title, it is flagged as a "Gap".
MarketDiscoveryService
Provides fallback keyword generation when GSC data is unavailable. Uses LLM prompting to brainstorm trending topics based on the configured seo_niche.
AiClusteringService
Takes a broad topic and uses an LLM to generate a structured JSON array of semantically related sub-topics. Used by the "Brainstorm Cluster" UI feature.
Auto-Pilot Engine (GscAutomationController)
The heart of PRO is runAutoPilot(), which can be triggered via cron or manually.
- It parses the JSON array of
auto_pilot_schedules. - Filters schedules that match the current day of the week.
- Loads the associated
GenerationTemplate. - Resolves the
auto_pilot_keyword_source:- If
gsc_internal, callsGscServiceandGapAnalyzer. - If
gsc_market, callsMarketDiscoveryService. - If
placeholders, resolves raw combinations.
- If
- Slices the resulting array by the remaining daily
quota. - Calculates the interval spacing for drip-feeding (
pacing_strategy). - Dispatches instances of
\PageGenerator\Jobs\ProcessPageGenerationwith delayedscheduled_attimestamps using the corePageGenerationService.
Database Additions
PageGenerator PRO heavily utilizes the base plugin's database structure, specifically relying on:
auto_pilot_keyword_source,auto_pilot_keyword_pattern,auto_pilot_keyword_fallbackcolumns in thewaravel_page_generator_templatestable.- Stores its schedules in
waravel_plugin_settingsunder the keyauto_pilot_schedules.