What Are Clusters?
Every signal event has apayload field containing JSON data. Clusters group events by extracting a string value from this JSON using a simple Mustache-style template (top-level keys only), then grouping events with similar extracted values.
For example, if your events have payloads like {"error_message": "Connection timeout", "url": "..."}, you can cluster by {{error_message}} to group similar errors together.
Common patterns that emerge:
- Similar failures - Errors with the same root cause, regardless of surface differences (for example, 47 failures all caused by lazy-loaded content).
- Behavioral groups - Events that share a common action or intent (for example, all “search for product” events).
Set up clustering

- In Signals, click your signal to open it.
- In the Events tab, click Start Clustering.
- Enter a Value Template - a Mustache string like
{{content}}or{{error_message}}that extracts the value to cluster on from the event’spayloadJSON. (Only top-level keys likeerror_messageare supported.) - Click Start to populate the clusters table.
How Clustering Works
Every signal event stores its data in apayload JSON field. When you start clustering:
- Laminar renders your Mustache template against each event’s
payloadJSON (top-level keys only) - The template extracts a string value (for example,
{{content}}pulls thecontentfield) - Laminar sends the extracted content to the clustering service, which assigns/updates clusters
What You Can Do With Clusters
Understand user behavior - See what users are actually trying to accomplish, not just what buttons they clicked. Intent clusters reveal the “why” behind actions. Debug at scale - When something breaks, find all similar failures instantly. One fix addresses an entire cluster of issues. Spot unusual patterns - Unusual clusters can stand out when you scan the grouped events. Track trends - See how behavior changes over time. New clusters emerging? Old patterns disappearing?Viewing Clusters
In the Laminar dashboard:- Go to Signals and open your signal.
- In the Events tab, use the Clusters table to see grouped patterns.
- Click a cluster name to open the events list filtered by that cluster.
Example: Finding Extraction Failures
Your browser agent extracts product data. Some extractions fail. Eachextraction.failed event has a payload like:
- Start clustering with the template
{{error_message}} - View clusters to see failures grouped by similar error messages
- One cluster shows 47 failures, all on sites with lazy-loaded content
- Another cluster shows 12 failures, all with the same malformed selector
- Fix each root cause once, verify with the cluster members
