Since the revival of the conformal bootstrap, harmonic analysis of the conformal group SO(d+1,1) has been an essential ingredient in the program, due to its close relation to partial wave decompositions of correlation functions. In turn, this relation has led to new connections between CFTs and integrable models of quantum mechanics. In the first part of the talk, I will summarise the uncovered relations between four- and higher-point functions to Calogero-Sutherland and Gaudin models, respectively, as well as elements of the solution theory for these models. In the second part, I will describe a similar recent construction for thermal correlation functions, which makes contact to Hitchin systems. As a first application, I will show some new results for CFT data of free theories in d=3.