Is the book 'I Robot' by Isaac Asimov a utopian or dystopian book?

It is both. It is a utopian view of a world where we have incorporated technology into our lives successfully, but it is also a dystopic cautionary tale about creating a slave race. You can't rely on other "people" to do your work or to solve your problems without putting yourself in their power to a large extent. As with many other Science Fiction stories, whether it is a utopia or a dystopia depends on perspective. Do you see it as an ideal future or as a horrible future, and is that future mostly a utopia that just needs a few tweaks to avoid a robot rebellion, or is it mostly a dystopia where we shouldn't even begin to mess with artificial intelligence? ... It raises questions and makes you think.