Alert on trending problem tickets in Google Big Query

Recipe ToolsMarketingWorkatoNLUArtificial IntelligenceDeveloper ToolBotsSales Enablement

What it does

When a schedule triggers this automation, it queries Google Big Query to identify similar case clusters. It processes the results with Python and posts a summary to Slack so the team sees trending problems.

Who it's for

Customer support teams who want to spot patterns in tickets without manual analysis.

How teams use this

Spot recurring support issues

Run the query weekly to find case clusters and post summaries to a support channel. The team reviews trends without digging through tickets manually.

Alert engineering to common bugs

Retarget the Slack post to an engineering channel so developers see patterns in customer-reported problems. The query and Python logic stay the same.

Filter clusters by severity or age

Add a condition to the Python script to only include clusters that meet a severity threshold or were created within a time window. This narrows the Slack post to high-priority trends.

Route urgent clusters to on-call

Check cluster priority in the Python output and send urgent ones to an on-call channel or direct message. Non-urgent clusters still post to the main support channel.

How it works

  1. Trigger on a custom schedule. The automation runs on a recurring schedule following a custom cron expression you define.
  2. Run custom SQL in Google Big Query. Execute a custom SQL query in Google Big Query to identify similar case clusters and new base case connections based on conditions and filtering logic.
  3. Process results with Python. Run a Python script to process the query output and prepare a summarized message detailing the detected similar case clusters for Slack.
  4. Post cluster summary to Slack. Post the prepared message with cluster details to a specified Slack channel so the team sees trending problems at a glance.