I was trying to add a notification for task assignees for a certain amount of time before the due date of a task, but it doesn't seem that this is possible. Tasks are not available in the "Scope" of automation rules.
I was able to create a similar automation for tickets / service requests, but we don't often use due dates on those, and instead put the due date on the tasks within the service requests.