Trigger tag counting question | The place for Zendesk users to come together and share
Skip to main content
Newcomer
Oct 27, 2026 2:25 AM UTC
Question

Trigger tag counting question

How do I count chat messages with a trigger and add a tag when the conversation ends?

    2 replies

    luise64
    Newcomer
    Nov 4, 2026 9:17 AM UTC

    Before suggesting an approach, could you share a bit more about what you're ultimately trying to achieve?

    For example, are you looking to:

    • Flag long or complex conversations (e.g. anything over X messages) so they can be reviewed or routed differently?
    • Report on how many messages agents or customers send per conversation?
    • Measure agent productivity, such as replies per hour?
    • Trigger something else, like a CSAT survey or follow-up, based on conversation length?

    Triggers can't easily keep a running count of messages on their own, so depending on the goal, there may be a simpler route, such as reporting, a custom field, or an app, rather than a trigger and tag.

    If you can share the end goal and which channels this is for (web widget, social messaging, etc.), I'm sure we can point you in the right direction.

    Translate
    Chief Customer Officer • www.geckoboard.com
    jhoan zabala
    Nov 4, 2026 9:26 PM UTC

    I’m not sure why you need to count chat messages, but in any case, you could use messaging triggers to perform actions based on messages events, and traditional triggers when a messaging session ends.

    Translate
    Jhoan Zabala / www.jhoanzabala.com