Resolve idle conversation after 5 minutes

How can I close a conversation that has been idle for 5 minutes (no response from customer)

I think that a triger could be a possible solution, but not sure which properties should be evaluated…

Any clue?



For solving this challenge we have develop custom code (API Rest call), it would be nice if the trigger can have this feature.