> ## Documentation Index
> Fetch the complete documentation index at: https://otakusolutions.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Insights Portal

> Cross-district analytics workbench with equity analysis, trend tracking, district scorecards, and AI-generated data stories.

<Frame caption="The Insights Portal — cross-district analytics with equity analysis and AI-generated data stories.">
  <img src="https://mintcdn.com/otakusolutions/FOF9Ash-8JM0rAsn/images/insights-dashboard.png?fit=max&auto=format&n=FOF9Ash-8JM0rAsn&q=85&s=d4e1fdd88ba5278e671f85312657b574" alt="Insights Portal dashboard" width="1440" height="900" data-path="images/insights-dashboard.png" />
</Frame>

## Who Is This For?

Data analysts, urban planners, equity officers, and data-driven decision makers who want to explore Montgomery's civic data across districts and dimensions. The Insights Portal is an analytics workbench for uncovering patterns, identifying disparities, and generating narrative insights.

## Five Tabs

The Insights Portal organizes its analysis across five tabs:

### Overview

A high-level summary of city-wide metrics with key indicators across all service areas. The overview provides a starting point for deeper analysis in the other tabs.

### Equity

Equity analysis comparing service delivery across Montgomery's 9 council districts:

* **Service distribution metrics** — Are 311 responses, code enforcement, and infrastructure investments equitably distributed?
* **Per-capita comparisons** — Normalize metrics by population to identify true disparities
* **Gap identification** — Highlight districts that are over- or under-served relative to need

### Trends

Metric trending over time with interactive controls:

* **Toggle metrics on and off** to compare different data series
* **View quarter-over-quarter and year-over-year changes**
* **Identify seasonal patterns** in 311 requests, permits, and violations

### Districts

Individual district scorecards with detailed breakdowns:

* **Select any district** to see its full service profile
* **Comparative ranking** — How each district performs relative to city averages
* **Key metrics** — 311 requests, code violations, permits, infrastructure status

### Stories

AI-generated narrative data stories that turn numbers into insights:

* **Automated narratives** — The AI analyzes data patterns and writes plain-English summaries
* **Thematic stories** — Focus on equity, service delivery, economic development, or public safety
* **Shareable format** — Stories are structured for easy inclusion in reports and presentations

## Example AI Questions

<CardGroup cols={1}>
  <Card title="Equity Analysis">
    "Switch to the equity analysis tab"
  </Card>

  <Card title="District Focus">
    "Show me the scorecard for District 4"
  </Card>

  <Card title="Data Story">
    "Generate a data story about service equity"
  </Card>

  <Card title="Trends">
    "What are the trending metrics this quarter?"
  </Card>

  <Card title="Comparison">
    "Compare 311 response rates across districts"
  </Card>

  <Card title="Specific Metric">
    "Show me code violation trends over the last 3 years"
  </Card>
</CardGroup>

## What the AI Can Do

The Insights Portal AI assistant:

* Navigates between the **five analysis tabs** on your behalf
* Focuses on **specific districts** for detailed scorecard views
* Shows and hides **trend metrics** for comparative analysis
* Generates **narrative data stories** that explain what the numbers mean
* Identifies **equity gaps** and service delivery disparities
* Provides **analytical, data-forward** responses with precise metrics

### AI Actions

| Action                | What It Does                                                               |
| --------------------- | -------------------------------------------------------------------------- |
| `switch_insight_tab`  | Switches between the 5 tabs (Overview, Equity, Trends, Districts, Stories) |
| `select_district`     | Focuses the dashboard on a specific council district                       |
| `toggle_metric`       | Shows or hides a specific metric in the trends view                        |
| `generate_data_story` | Generates an AI-written narrative story from the current data              |

<Note>
  The Insights Portal is designed for exploration. Start broad with the Overview tab, then drill into Equity or Districts based on what catches your eye. Use the Stories tab when you need to communicate findings to non-technical stakeholders.
</Note>
