traffic_report_datapack
Compute weekly traffic data pack across Google Search Console, Bing, GA4, and Google Ads, handling API lags and isolating failures to warnings. Provides pre-computed cross-references for LLM analysis.
Instructions
Complete, deterministic data pack for the weekly traffic report (READ-ONLY).
Folds the traffic skill's GSC / Bing / GA4 / Google Ads batches plus LLM-referral gathering into one Python call: computes the Mon–Sun target + previous weeks (GSC gets its ~3-day lag), pulls every metric, and pre-computes the cross-references the skill used to ask the LLM to derive — the "Bing leads Google" candidate list and any emerging AI-surface referrer not yet in the curated list.
Each platform batch is isolated so one API failure degrades to a warnings entry
instead of aborting the pack.
Args: week_ending: Anchor date YYYY-MM-DD (default: today). weeks_back: Completed weeks back to target (default: 1 = last week).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weeks_back | No | ||
| week_ending | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |