Skip to main content
Customer support ticket analytics for lifecycle, agent performance, and channel analysis.
  • Grain: One row per sm_ticket_key.
  • Date field: ticket_created_at_local_datetime.
  • Filters to start with: is_ticket_spam = FALSE to leave spam out, and ticket_communication_channel for platform segmentation (email, instagram-direct-message, etc.).
  • Joins: dim_customers via customer_id. It is the Shopify customer whose email matches the ticket’s email, and NULL when none matches.

Query examples

Columns

Platform notes

The Gorgias and Richpanel integrations fill this table today.
  • Gorgias. Supplies ticket_assignee_team_id directly and takes ticket_assignee_team_name from the ticket, so the name is set even when the team no longer joins obt_customer_support_teams. Carries a stable customer id in source_system_customer_id.
  • Richpanel. Has one assignee field for either a user or a team. When it matches a team in obt_customer_support_teams, ticket_assignee_team_id and ticket_assignee_team_name are set and the other ticket_assignee_* fields are NULL. When it does not, the team fields are NULL and the other ticket_assignee_* fields carry the assignee. Its tickets carry no stable customer id, so source_system_customer_id is NULL. They also carry no spam flag, so is_ticket_spam is always false.