People has a whole host of possible automation. You can trigger workflow rules (and hence, custom functions), based on actions surrounding user data, leave data, forms submission, timesheets, and more.
Create custom functions to run in those workflows, or, like in other apps, set up a scheduled function to run at predetermined intervals.