The last decades saw a huge rise of Artificial Intelligence (AI) as a powerful tool to boost industrial and scientific research in a broad range of fields. AI and photonics are developing a promising two-way synergy: on the one hand, AI approaches can be used to control a number of complex linear and nonlinear photonic processes, both in the classical and quantum regimes; on the other hand, photonics can pave the way for a new class of platforms to accelerate AI-tasks. Here, we present the main AI applications in the fields of spectroscopy and chemometrics, computational imaging, wavefront shaping and quantum optics. We will give higher relevance to applications in Coherent-anti Stokes Raman scattering spectroscopy and microscopy, a powerful vibrational imaging technique that delivers maps of cells and biological tissues. We conclude with an overview of future developments of the promising synergy between AI and photonics.