This is the utopia of the Culture from the Banks novels. Critically, it requires that the AI be of superior ethics.