It’s not just casting spells. How will paladin smites be handled? Smites can’t be automated as you need to choose the spell level and even if you want to perform a smite.

It needs to be a reactionary action after a hit so the player can decide what kind of smite to use.