Skip to main content

Sample Queries

The following examples illustrate BigQuery queries for common analytics, assuming logs have been copied to a table called glean_customer_event_table.

User Activity & Engagement

Search Analytics

Search Quality & Performance

Chat & AI Analytics

Agent Metrics

Agent Types Explained:

When viewing query results in this section, you'll see agents categorized by type:

  • AGENT: Standard conversational agents created and managed by users. These are the primary agents that end-users interact with directly.

  • SUBAGENT: Internal helper agents that are called by other agents to perform specialized tasks. These run behind the scenes and are not directly invoked by users. Common examples include search agents, data retrieval agents, and tool execution agents. Note: In production environments, you may see a high volume of subagent runs as they are triggered by parent agents during workflow execution.

  • AGENT_TEMPLATE: Pre-built agent configurations provided by Glean that users can clone, customize, and deploy as their own agents. These serve as starting points for common use cases.

Action Metric

GleanBot User Level Activity