Skip to main content

ai_prompt_insights

Retrieves AI prompt insights grouped by Apps or Users with filtering capabilities. Supports App status filter with Apps and department ID filter.

Arguments​

NameDescription
start_time - Long!The start time of the query window, as a Unix timestamp.
end_time - Long!The end time of the query window, as a Unix timestamp.
group_type - AIPromptInsightsGroup!Group by APPLICATION or USER.
filter - AIPromptInsightsFilterOptional filters for app status, department, app name, and search.
page_size - IntThe page size for pagination (defaults to 100).
page_number - IntThe page number for pagination (defaults to 0).
QUERY
query GENERATIVE_AI {
GENERATIVE_AI {
  ai_prompt_insights(start_time: "123456789", end_time: "123456789", group_type: APPLICATION, filter: { app_status: UN_SANCTIONED, department_id: 10, app_name: "Slack" }, page_size: 10, page_number: 10) {
    weblog_time
    obfuscated
    entries {
      id
      is_name_l10n_tag
      name
      total
    }
  }
}
}
RESPONSE
{
"data": {
  "GENERATIVE_AI": {
    "ai_prompt_insights": {
  "weblog_time": 123,
  "obfuscated": true,
  "entries": [{
    "id": 123,
    "is_name_l10n_tag": true,
    "name": "example_value",
    "total": 123
  }]
}
  }
}
}