Other countries have already automated their social welfare systems—with mixed results.