It's just a bunch of if conditions, no need for AI. The problem is that sometimes something not planned in those if conditions happens, and then you need deduction and high knowledge of physics and the aircraft systems.
On modern planes there is a very high degree of automation already. But it's a fine balance, because too complex automations can be confusing or unpredictable to the pilots. There are a few crashes due to pilots not understanding/fighting with automation.