# Get the AI generated key metrics summary

Generates a natural language summary of the user's key metrics for the given filters.

Endpoint: GET /home/key-metrics/ai-summary
Version: 20260801

## Query parameters:

  - `language` (string)
    Language the summary should be generated in

  - `locationIds` (string)
    Comma-separated location IDs to filter by

  - `businessIds` (string)
    Comma-separated business IDs to filter by

  - `locationGroupIds` (string)
    Comma-separated location group IDs to filter by

  - `labels` (string)
    Comma-separated labels to filter by

  - `excludedLocationIds` (string)
    Comma-separated location IDs to exclude

  - `excludedBusinessIds` (string)
    Comma-separated business IDs to exclude

  - `excludedLocationGroupIds` (string)
    Comma-separated location group IDs to exclude

  - `excludedLabels` (string)
    Comma-separated labels to exclude

  - `filterCategory` (string)
    Filter strategy to apply: location-groups, labels, business, or location

  - `query` (string)
    Search query string depending on filter category

## Response 200 fields (application/json):

  - `summary` (object)
    The generated summary, null when there is no data to summarize

  - `summary.id` (string, required)
    Identifier of the summary, used when submitting feedback

  - `summary.text` (string, required)
    The summary text

  - `summary.trend` (string, required)
    Overall trend described by the summary
    Enum: "POSITIVE", "NEGATIVE", "NO_CHANGE"

  - `summary.ctaPrompt` (string, required)
    Prompt to send when the user clicks the call to action

