Skip to main content

ai_prompt_viewer

Retrieves AI prompt viewer data grouped by Apps or Users with comprehensive filtering capabilities. Supports DLP engine, DLP dictionary, document type, prompt classification, action filters for both Apps and Users. Additionally supports app status, app class, app search for Apps and department ID, user search, app name for Users.

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 - AIPromptViewerFilterOptional comprehensive filters for Apps or Users.
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_viewer(start_time: "123456789", end_time: "123456789", group_type: APPLICATION, filter: { dlp_engine: { id: 10 }, dlp_dictionary: { id: 10 }, document_type: "example" }, page_size: 10, page_number: 10) {
    weblog_time
    obfuscated
    entries {
      id
      is_name_l10n_tag
      name
      total
    }
  }
}
}
RESPONSE
{
"data": {
  "GENERATIVE_AI": {
    "ai_prompt_viewer": {
  "weblog_time": 123,
  "obfuscated": true,
  "entries": [{
    "id": 123,
    "is_name_l10n_tag": true,
    "name": "example_value",
    "total": 123
  }]
}
  }
}
}