How to set an intent if user doesn't input for x time

Is it possible to add to an intent “user is inactive for x seconds” ? Do I need an action to check inactivity or there is a better way ? Thanks, SC

Look at Reminders (this and this)!

And check this thread for an implementation: Trigger an action after a specific period of time