Usually, when an inventor has a new idea, he or she will immediately file a patent application for a product, only to realize that, after receiving an office action, his or her idea is no longer new. Before filing a patent application, I always do a prior art search first using Patentcloud by InQuartik. This is because, more often than not, you will find out that your idea is not as new as you think it is, and this is a good thing.
After conducting a prior art search and discovering that your invention has already been patented, differences can then be identified by studying the prior art. For example, in many patent applications that I have handled, while the prior art may be identical to the supposed new product, the prior art always tends to miss out on the manufacturing of the product. That is how I help inventors to obtain a patent for his or her new idea.