integrated AI with drawComponent