These companies are turning AI from a threat into an opportunity.