A customer opens a chat about a missing parcel, then emails a delivery photo while the chat is still waiting for an agent. The email goes to a separate queue and two agents start investigating. In this hypothetical case, one ticket should own the investigation, with both contacts available to the agent. If the same customer emails about a second parcel in the same order, that email needs its own work.
Before routing a new ticket, decide whether it belongs to an existing piece of work. Merge only when identity, the underlying issue and the work still owed line up, and the merge can preserve visibility and ownership. Use text similarity to find candidates for review. Keep normal routing available when the evidence is incomplete.
Define what counts as a duplicate
Write the definition for the first queue you plan to automate. For a delivery queue, a duplicate could mean a verified requester contacting support again about the same shipment and the same unresolved delivery problem. The shipment ID is more useful here than the order ID because an order can contain several shipments. In billing, a payment transaction or invoice line may be the relevant reference. A request for an invoice copy and a dispute over the amount can share an invoice ID and still need separate work.
Handle a retried delivery of the same intake event at ingestion. Where the source provides a stable event ID, use that ID and the integration as a unique key. Record whether ticket creation is pending or complete. If a create request times out, use the same idempotency key where supported or reconcile the pending record against the help desk before trying again. A second message from the customer is a separate contact. Preserve it and its arrival time even if it joins existing work. Link each contact to the underlying issue in your reporting data so the support team can apply its repeat contact and resolution measures after ticket counts change.
Treat new evidence for an unresolved issue as a possible addition to the existing ticket. A follow-up after a recorded resolution may require reopening the case or routing a new follow-up linked to it. A known outage can explain similar tickets across customers. Link those cases to the incident and retain each customer’s conversation and commitments.
Find candidates before scoring the text
Start the lookup inside the account and visibility boundary the receiving queue is allowed to see. Use a trusted requester or customer ID and look up eligible tickets by shipment, transaction, case reference or another identifier that matches the workflow. Restrict the first pass to tickets whose state and age make them plausible destinations. Set the lookback from observed contact gaps and resolution times in that queue. A recently closed case can still be a useful reference for an agent.
Keep text features separate from the original message. Remove quoted chains and template footers from the comparison input when they can be identified reliably. Keep the original in the ticket. Compare the customer’s new description against the existing issue and use verified identifiers as separate checks. If a message contains a reference the integration cannot verify, show it to the reviewer as unverified. If a contact arrives from a different channel with no trusted identity link, route it with the available context and let an authorized agent resolve the identity.
Sentence Transformers documents how to encode text as embeddings and compare the embeddings with cosine similarity. This gives you a way to rank candidate descriptions that use different wording. Treat the score as a measure of text similarity. A pair of parcel complaints can score highly even when they refer to different shipments. A short photo-only follow-up may provide little text to score and still belong to the same case. Sentence Transformers, Semantic Textual Similarity
Set a threshold for review and rules for merging
Use a review threshold to decide when a candidate is worth showing to an agent. Above it, display the proposed destination, the matching references, the new text and any conflicting details. Below it, route the ticket normally unless verified evidence independently identifies the existing case. Send multiple plausible destinations to review. Short messages, missing references and bilingual contacts deserve their own evaluation slices. The journal’s guide to routing Vietnamese and English tickets covers the language and handoff decisions that still apply after matching.
| Evidence at intake | Action before routing |
|---|---|
| Verified requester and issue reference, same unresolved work, one eligible destination, and visibility and ownership checks pass | Merge under an approved rule after testing that rule and the merge operation. |
| Similar text with a missing reference, or more than one plausible destination | Route with a candidate suggestion for an authorized agent to review. Keep the new ticket actionable. |
| Confirmed different shipment, different action required, or different visibility boundary | Route independently. Attach an incident reference only where policy permits it. |
| Same issue reference but the prior case is resolved | Route or reopen under the follow-up policy and preserve the relationship to the prior case. |
For an initial pilot, run merge rules in shadow mode and let agents make the decision. On historical tickets, compare candidate cutoffs by the number of suggestions per shift, the share agents would reject, and the known duplicates each cutoff would surface. If lowering the threshold mostly adds generic delivery complaints, leave the cutoff higher and investigate whether the retrieval step is missing verified shipment matches. If you later add a higher score cutoff for automatic merges, apply it only after the required checks pass. Let the queue owner set an acceptable false-merge limit and a review workload the queue can handle. Check both decisions on a later period before rollout.
Verify what the help desk does on merge
Test the merge in your platform with records that differ in watchers, priority, comments and status. In its public documentation, Zendesk says a merge is permanent. With ticket CCs enabled, merging across requesters adds the requester from the closed ticket as a CC on the destination. Existing CCs from either ticket are also included. Fields such as priority and tags from the closed ticket do not carry over. An unsolved ticket can also be merged into a solved ticket without reopening it. Zendesk, Merging tickets
Define which ticket survives. Prefer an active ticket that already owns the work. Before merging, verify who can see the resulting conversation and what happens to notifications, attachments, deadlines and escalation flags. Have an agent handle cases with conflicting priorities or commitments until you have a rule that preserves them. Keep the source ticket ID and contact timestamp in the decision record. Show the assigned agent where to find the new evidence. If the platform cannot preserve what the agent needs, keep the tickets linked and give one queue explicit ownership of the next action.
Immediately before writing the merge, recheck the destination’s state, requester and visibility. Use a stable operation key for the source and destination and reconcile the help-desk state after a timeout before retrying. If simultaneous arrivals can choose competing destinations, serialize the decision by a verified issue key where available. Before submitting a merge, let normal routing proceed if the lookup stalls or the destination changes. If a merge was already submitted and the outcome is uncertain, reconcile it before routing the source ticket. A duplicate check should have a time budget tied to the queue’s intake target.
Test the rule on what agents could see at arrival
Replay redacted tickets in arrival order. Label pairs as the same unresolved work, separate work, or uncertain. Include channel switches, similar requests against separate transactions, recurring problems after a resolution, and contacts from different people in one account. Use later evidence to establish the label where appropriate. Give the replay only the fields available at intake. Keep examples from the same underlying issue together when splitting cases for tuning and testing.
Measure candidate recall, the share of known duplicates where the correct prior ticket was retrieved. Then measure false merges as a share of completed merges, review volume, and time from arrival to an accountable owner. Check a sample of independently routed tickets for missed duplicates. Keep a representative sample for estimating rates and a separate set of difficult cases for probing failure modes. Review results by channel and by whether a reliable issue reference was available. In shadow mode, grade proposed merges separately from agent-confirmed and completed merges.
Turn on automatic merging first for the rule with the clearest evidence and a verified merge outcome. Assign a lead to review bad decisions and pause automatic merges while the queue continues routing. For mistaken merges, recover any open work and check visibility and customer commitments. Keep counting incoming contacts even when fewer tickets reach the routing queue.
Sources
- Official help-desk behavior for merge permanence, CCs, field carryover and solved destinations. Zendesk, Merging tickets
- Embeddings and cosine similarity for ranking pairs of text descriptions. Sentence Transformers, Semantic Textual Similarity
- Issue-level measurement and repeat contacts. Insonl, Measure AI Support Quality Beyond Containment
- Language and assignment decisions across customer messages. Insonl, Routing Vietnamese and English Tickets Without Losing Context
- The free audit offer. Insonl, Free AI workflow audit
Request a free AI workflow audit
Bring a redacted repeat contact and a similar ticket that needed separate work. We can map the evidence available before routing and identify which cases are suitable for a merge rule or agent review. Request a free AI workflow audit