Context. The physical and chemical conditions in Class 0/I protostars are fundamental in unlocking the protostellar accretion process and its impact on planet formation. Aims. The aim is to determine which physical components are traced by different molecules at subarcsecond scales (<100–400 au). Methods. We used a suite of Atacama Large Millimeter/submillimeter Array (ALMA) datasets in band 6 (1 mm), band 5 (1.8 mm), and band 3 (3 mm) at spatial resolutions 0.″5–3″ for 16 protostellar sources. For a subset of sources, Atacama Compact Array (ACA) data at band 6 with a spatial resolution of 6″ were added. The availability of low- and high-excitation lines and data on small and larger scales, is important to understand the full picture. Results. The protostellar envelope is well traced by C18O, DCO+, and N2D+, which stems from the freeze-out of CO governing the chemistry at envelope scales. Molecular outflows are seen in classical shock tracers such as SiO and SO, but ice-mantle products such as CH3OH and HNCO that are released with the shock are also observed. The molecular jet is a key component of the system. It is only present at the very early stages, and it is prominent not only in SiO and SO, but occasionally also in H2CO. The cavity walls show tracers of UV-irradiation such as C2H, c-C3H2 and CN. In addition to showing emission from complex organic molecules (COMs), the hot inner envelope also presents compact emission from small molecules such as H2S, SO, OCS, and H13CN, which most likely are related to ice sublimation and high-temperature chemistry. Conclusions. Subarcsecond millimeter-wave observations allow us to identify these (simple) molecules that best trace each of the physical components of a protostellar system. COMs are found both in the hot inner envelope (high-excitation lines) and in the outflows (lower-excitation lines) with comparable abundances. COMs can coexist with hydrocarbons in the same protostellar sources, but they trace different components. In the near future, mid-infrared observations with JWST–MIRI will provide complementary information about the hottest gas and the ice-mantle content, at unprecedented sensitivity and at resolutions comparable to ALMA for the same sources.