How to monitor a chat having duration over than 10 minutes?

Our operation want to monitor those conversion having duration over than a specific time.
because long duration could be a signal that need human interruption.
Can someone advise how to approach?