How to setup automation for tasks

How to setup automation for tasks