Every 30 minutes
Summarise long tickets in an internal note
When a ticket thread gets long, agents get a short internal summary instead of reading every comment.
- Runs
- Every 30 minutes
- Apps
- Zendesk
- AI
- Yes, uses the built-in AI allowance
- Access
- read+write
Send this to your assistant
Create a ClickRuntime automation: every 30 minutes, find updated Zendesk tickets with more than 10 comments and add a short summary of the thread as an internal note. Only do it once per ticket.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A ticket that started as a billing question is now at 23 comments over three weeks. It has bounced between two agents, an engineer added a note about a failed webhook, and the customer has restated the problem twice. When it is reassigned, the new agent has to scroll through the whole thread to learn what has been tried. That takes ten minutes, and mistakes still happen, like asking the customer something already answered.
Every half hour, tickets that were updated are checked for their comment count. When a thread passes a set length, the built-in AI reads it and writes a short summary of the problem, steps taken and what is pending. The summary is added as a private internal note, never visible to the customer, and the ticket is remembered so it is not summarized again.
It helps support teams with handoffs between shifts or tiers.
What you get out of it
Handoffs that take seconds
A new agent reads one paragraph at the top instead of 23 comments. Escalations to tier two or to engineering start with context already written down. The summary also notes pending steps, so nothing waits on the wrong person.
Fewer repeated questions to customers
Customers get annoyed when asked for an order number they gave twice already. A summary listing what is known stops agents from re-asking and protects satisfaction scores. Customers notice when they do not have to repeat themselves.
Managers can review without reading threads
A supervisor checking a difficult ticket for coaching can read the summary and open the thread only if something looks wrong. Reviews that took an hour take minutes. Coaching conversations work better when the thread is easy to grasp quickly.
Context survives staff changes
When the original agent leaves or changes teams, a note capturing the story so far stays on the ticket. Knowledge about a long-running issue is no longer locked in one person's memory.
Internal notes stay internal
Because the summary is a private comment, agents can write candidly about the state of the issue. Nothing can reach the requester or show up in an emailed notification to them.
Fewer errors during escalation
Engineers receive the key facts rather than a long thread, which avoids missing a detail that changes the diagnosis. Because every long case carries a summary at the top, handing a ticket to a colleague during a holiday or shift change takes seconds, not a long catch-up.
How it works
What happens, step by step
Every 30 minutes, ClickRuntime looks at Zendesk tickets updated since its last check.
It picks out tickets with a long back-and-forth.
AI reads the whole thread and writes a short summary of the problem and where things stand.
The summary is added as an internal note on the ticket. Tickets already summarised are not done twice.
Before it runs live
- Connect Zendesk
What you get
Build your own
Need it to work differently?
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
- Act only on the items that match your own rules, and skip the rest
- Change what the AI looks for, or how it writes the result
- Add another app, for example also send it to Slack
- Combine it with other Zendesk steps into one automation
Under the hood
The code that runs this automation
import time
from clickruntime import on_trigger, http, credentials, ai, state, report_fetched
ZD = "https://yourcompany.zendesk.com/api/v2"
AGENT_EMAIL = "you@yourcompany.com"
def zd(method, path, **kw):
r = http.request(method, f"{ZD}{path}", auth=(f"{AGENT_EMAIL}/token", credentials.secret("ZENDESK_API_TOKEN")), **kw)
r.raise_for_status()
return r.json() if r.content else None
@on_trigger
def run(event):
since = state.get("since") or int(time.time()) - 1800
page = zd("GET", "/incremental/tickets.json", params={"start_time": since})
done = set(state.get("summarised") or [])
todo = [t for t in page["tickets"] if t["id"] not in done and t["status"] != "closed"]
report_fetched(len(todo))
state.set("since", page["end_time"])
if not todo:
return {"summarised": 0}
count = 0
for t in todo:
comments = zd("GET", f"/tickets/{t['id']}/comments.json")["comments"]
if len(comments) <= 10:
continue
thread = "\n".join(c["plain_body"][:400] for c in comments)
summary = ai.generate(f"Summarise this support thread in 4 lines:\n{thread}", max_output_tokens=200).text
zd("PUT", f"/tickets/{t['id']}", json={"ticket": {"comment": {"body": f"Summary:\n{summary}", "public": False}}})
done.add(t["id"])
count += 1
state.set("summarised", list(done)[-2000:])
return {"summarised": count}FAQ
Common questions
How many comments make a ticket long?
Will the summary update as the ticket grows?
Can customers see the summary?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Tag new tickets by topic
Every new ticket gets a topic tag within minutes, so views and reports sort themselves.
See how it worksGet an email when a ticket lands in your urgent view
New tickets in the view you care about reach your inbox within five minutes.
See how it worksGet warned before tickets breach their SLA
Your team hears about a ticket 30 minutes before it misses its first-reply target, not after.
See how it worksKeep exploring
Set up “Summarise long tickets in an internal note” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.