Auto-remind all inactive deals

Hi team, what’s the best way to create an automation that helps us auto-remind/create a task if an account has no activity for longer than X days? Has anyone found best practices?

We want to ideally loop through all deals -