TSUKUBA, Japan - Ministers from the Group of 20 major economies agreed Saturday on a set of guidelines for the responsible use of artificial intelligence, a technology that carries great potential to benefit humankind but also poses risks if left unchecked.