The inventive apparatus is comprised of a means for producing cavitation in a complex reaction mixture to enhance the yield of the selected reaction product, a means for controlling the temperature of the complex reaction mixture, especially during cavitation, and a means for affecting magnetic separation of paramagnetic beads to which the selected reaction product is attached from the complex reaction mixture. In one embodiment, the compound(s) or molecule(s) is synthesized in situ, and isolated using the inventive apparatus. The apparatus finds use in the fields of solid phase organic synthesis, and for isolation and purification of a selected compound(s) or molecule (s), especially where automation is desired.