Skip to content

Weekly

Post weekly support numbers to Slack

Every Monday, Slack shows last week's new and solved tickets and the median first reply time, compared with the week before.

Runs
Weekly
Apps
Slack, Zendesk
AI
Not needed
Access
Zendesk read; chat:write

Send this to your assistant

Create a ClickRuntime automation: every Monday at 9am, post last week's Zendesk numbers to #support: tickets created, tickets solved, and median first reply time, with the change from the week before.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

A head of support spends Monday morning pulling numbers out of Zendesk for the leadership meeting. It is the same three figures every week, copied into a message by hand. When they are on holiday, nobody sends them.

Posting the numbers automatically keeps the whole team aware of how the queue is going, and frees that Monday hour for reading the tickets behind the numbers.

What you get out of it

  • The same numbers every week

    Figures are counted the same way each time, so week-on-week changes are real and not a side effect of how someone filtered a report.

  • Trends are visible

    Each number comes with last week's figure, so a slow rise in volume or reply time is noticed before it becomes a problem.

  • No dashboard login needed

    Managers and the rest of the company see support's workload without a Zendesk seat or a reporting add-on.

  • It still happens on holiday weeks

    The post goes out every Monday whoever is in the office.

How it works

What happens, step by step

  1. Every Monday morning, ClickRuntime counts last week's new and solved tickets in Zendesk.

  2. It works out the median time customers waited for a first reply.

  3. It compares each number with the figures it saved the week before.

  4. The summary is posted to your #support Slack channel and this week's figures are kept for next Monday.

Before it runs live

  • Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)
  • Connect Zendesk

What you get

RunsWeekly
Post weekly support numbers to Slacktoday, 9:00Succeeded
Slack · #supportSupport last week New tickets: 214 (+18) · Solved: 229 (+31) · Median first reply: 42 min (−9)

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

Changes you can ask for

  • Run it at a different time, more or less often, or only on weekdays
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Google Sheets
  • Combine it with other Slack and Zendesk steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
weekly_support_metrics_in_slack.pyexample
from datetime import date, timedelta
from statistics import median
from clickruntime import on_trigger, http, credentials, state, notify

ZD, AGENT = "https://yourcompany.zendesk.com/api/v2", "you@yourcompany.com"

def zd(method, path, **kw):
    r = http.request(method, ZD + path, auth=(f"{AGENT}/token", credentials.secret("ZENDESK_API_TOKEN")), **kw)
    return r.raise_for_status() or (r.json() if r.content else None)


@on_trigger
def run(event):
    start, end = (date.today() - timedelta(days=7)).isoformat(), date.today().isoformat()
    created = zd("GET", "/search/count", params={"query": f"type:ticket created>={start} created<{end}"})["count"]
    solved = zd("GET", "/search/count", params={"query": f"type:ticket solved>={start} solved<{end}"})["count"]
    metrics = zd("GET", "/ticket_metrics", params={"per_page": 100})["ticket_metrics"]
    replies = [m["reply_time_in_minutes"]["business"] for m in metrics
               if m["created_at"][:10] >= start and (m.get("reply_time_in_minutes") or {}).get("business")]
    now = {"created": created, "solved": solved, "reply": round(median(replies)) if replies else 0}
    last = state.get("last") or now
    diff = lambda k: f"{now[k] - last[k]:+d}"
    notify.slack(f"Support last week\nNew tickets: {now['created']} ({diff('created')})\nSolved: {now['solved']} ({diff('solved')})\n"
                 f"Median first reply: {now['reply']} min ({diff('reply')})", channel="#support")
    state.set("last", now)
    return now

FAQ

Common questions

Which numbers are included?
Tickets created, tickets solved and the median time to first reply. You can add backlog size, satisfaction score or tickets per group in the prompt.
Where does the comparison come from?
It keeps last week's figures and compares them with this week's, so you see the change without a separate report.
Can it post to more than one channel?
Yes. It can post the full summary to #support and a shorter version to a leadership channel.
What permissions does it need?
Zendesk read; chat:write. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it runs (weekly). Checks that find nothing to do and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Post weekly support numbers to Slack” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.