content_brief
Gather top search queries, question queries, and GA4 engagement data for a single page to build content briefs and guide content refreshes.
Instructions
Gather SEO content intelligence for a single page: top queries, question queries, and GA4 engagement.
Step 1 — GSC: fetches search analytics with dimensions ["query", "page"], filters rows to the target page (via _normalize_url), sorts by clicks descending, and returns the top 20.
Step 2 — GA4: calls ga4_page_performance for the same page to get active_users and engagement_rate. Wrapped in try/except RuntimeError; returns None if GA4 credentials are missing or the property is not configured.
Question classification: queries whose first word (lowercased) is one of who/what/when/where/why/how.
Useful for brief-writing, content refreshes, and intent analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| site | Yes | ||
| page_url | Yes | ||
| property_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |