Trigger: A scheduled Looker data delivery sends a snapshot of key dashboard metrics (e.g., weekly sales, marketing funnel, support volume) to a cloud storage bucket or message queue.
Context/Data Pulled: An AI agent retrieves the snapshot and uses the Looker API to fetch the underlying LookML model definitions for context. It also queries BigQuery for historical trends (last 8 weeks) and planned targets for the same KPIs.
Model/Agent Action: The agent passes the current values, trends, targets, and metric definitions (from LookML) to an LLM with a structured prompt. The prompt instructs the model to:
- Identify the top 3 positive and negative metric movements.
- Provide a concise, business-friendly explanation for each, correlating movements where possible.
- Flag any metric that is an outlier beyond 2 standard deviations from its historical trend.
System Update/Next Step: The generated narrative is posted back as a comment on the Looker dashboard tile via the Looker API and emailed to the executive distribution list. The raw analysis is also logged to BigQuery for audit.
Human Review Point: A governance rule can be configured to flag commentary for any metric where the variance from plan exceeds 15%, requiring a manager's review before distribution.