ai automation restructuring