We've got a contact centre on Amazon Connect. However, our agents keep forgetting to log off or switch to offline when they leave or close the browser, which messes up with user experience and metrics.
Manually, through the "Real-time metrics" report of type "Agents" we can switch each agent to "Offline" using UI. But there is no API for that. Anyone figured out how to automate that? Basically, we want to switch offline any agent who is either in Missed state for >1 hour, or ACW for >1 hour, or in Error for >1 hour.