A robot lawyer powered by artificial intelligence will be the first of its kind to help a defendant fight a traffic ticket in court next month.