Teleporting AI

How do I create an AI that can teleport to different cubes that are placed in the map?