Al Williams shares an example of how using Google Apps Script with Gmail lets you write more advanced filtering/action scripts which can be executed automatically on a time based trigger.
Source: Hack Your Gmail: A Quick Start For Google App Scripting | Hackaday
Member of Google Developers Experts Program for Google Workspace (Google Apps Script) and interested in supporting Google Workspace Devs.