Advanced AI

I am looking to make an AI that can “see” obstacles and have a choice to climb over or go around. Anyone know how to do this?