I only use it after I've had to compound the entire car if I've collected a bunch of surface imperfections.
Then I use a dish soap before applying the preferred wax/polish etc.
But before I even buff the paint, I first start with claying it.
So: clay, buff, dish soap, wax/polish.
If I don't buff with compound, then I just: clay, then wax/ polish.