There are two types of AI. The one that has first-programmed purpose, and the one that doesn’t. In simple terms, here is what I understand.