ai automation debugging