Skip to content

On a schedule

Catch chats no agent answered

Chats from the past hour without an agent reply reach your inbox so you can follow up.

Runs
On a schedule
Apps
LiveChat
AI
Not needed
Access
chats--all:ro

Send this to your assistant

Create a ClickRuntime automation: every 15 minutes, email me LiveChat chats from the last hour that got no reply from an agent, with the visitor's email if they left one.

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 visitor opens the chat widget on your pricing page, types a question and waits. If no agent replies, they leave, and that lost conversation is lost revenue. LiveChat records the chat anyway, but unless someone looks at the archive, nobody learns that a potential customer asked about a bulk discount at 6:40 p.m. and got silence.

On its schedule, ClickRuntime lists the chats archived since its last check, keeps the ones where no agent sent a message and emails you the details, such as the visitor's name or email, the page they were on and what they typed. You can reply by email, so a missed conversation becomes a recovered one.

It matters most for businesses with limited chat hours or with a small team that cannot always answer in real time.

What you get out of it

  • Lost leads are recovered

    A visitor who left a question and an email can still be answered the next morning. Replying turns a missed chat into a conversation, and sometimes a sale. That is revenue you would otherwise never know you lost.

  • Coverage gaps are measurable

    A pattern of missed chats at certain hours shows where you lack staff. That is better evidence for changing schedules than a feeling that the team is stretched. That evidence is what makes a staffing change easier to justify.

  • Visitors learn you are responsive

    A reply to a missed chat shows customers that someone is paying attention. It is a better experience than an empty widget and builds trust with new visitors. That impression often decides whether they return.

  • Chat settings can be improved

    If many missed chats come from visitors outside your hours, you may change the offline message or hide the widget. The alerts supply the evidence for that decision. That is how small changes lead to fewer missed chats.

  • Agents are not blamed unfairly

    The list shows whether a chat was missed because nobody was online or because an agent did not reply. That keeps discussions about performance fair and factual. That keeps reviews calm and based on facts.

How it works

What happens, step by step

  1. Every 15 minutes ClickRuntime looks at the LiveChat chats from the past hour.

  2. It picks out chats where no agent ever replied, and skips any it has already told you about.

  3. You get an email listing the time of each missed chat and the visitor's email, so you can follow up.

Before it runs live

  • Connect LiveChat

What you get

RunsOn a schedule
Catch chats no agent answeredtoday, 9:00Succeeded
Email · 2 LiveChat chats got no reply14:05 dana@acme.example 14:22 no email

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

  • Act only on the items that match your own rules, and skip the rest
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Slack
  • Combine it with other LiveChat 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.
missed_chat_alert.pyexample
from datetime import datetime, timedelta, timezone
from clickruntime import on_trigger, credentials, http, state, notify, report_fetched

@on_trigger
def run(event):
    since = (datetime.now(timezone.utc) - timedelta(hours=1)).strftime("%Y-%m-%dT%H:%M:%S.000000Z")
    chats = http.post("https://api.livechatinc.com/v3.5/agent/action/list_archives",
                      json={"filters": {"from": since}, "limit": 100},
                      headers={"Authorization": f"Bearer {credentials.connection('livechat', 'work')}"}).json()["chats"]
    seen = set(state.get("seen") or [])
    missed = []
    for c in chats:
        agents = {u["id"] for u in c["users"] if u["type"] == "agent"}
        replied = any(e.get("author_id") in agents for e in c["thread"]["events"] if e["type"] == "message")
        if not replied and c["id"] not in seen:
            missed.append(c)
    report_fetched(len(missed))
    if not missed:
        return {"summary": "Nothing new"}
    lines = [f"{c['thread']['created_at'][11:16]}  " +
             next((u.get("email", "no email") for u in c["users"] if u["type"] == "customer"), "no email") for c in missed]
    notify.email_me(f"{len(missed)} LiveChat chat(s) got no reply", "\n".join(lines))
    state.set("seen", list(seen | {c["id"] for c in missed})[-500:])
    return {"missed": len(missed)}

FAQ

Common questions

What counts as a missed chat?
A chat that has ended with no message from an agent. A visitor who typed and left before anyone could answer is included, but a chat where an agent replied is not, even if the customer never answered back. The email includes a link back to the chat in LiveChat.
How soon after the chat do I find out?
It depends on the schedule. With a check every 30 minutes you hear within half an hour of the chat being archived. A daily check is cheaper on attention but leaves visitors waiting longer for a reply. Choose based on how fast you can respond.
Can missed chats from outside office hours be excluded?
Yes. The chat time is known, so the automation can skip chats outside your opening hours or collect them into a single morning email. That keeps the alerts about the missed chances you could have answered.
What permissions does it need?
chats--all:ro. 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 checks. Checks that find nothing new 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 “Catch chats no agent answered” from your assistant

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