AGB outflows
Close to their deaths, stars born with masses ranging from 0.5 to 8 times the mass of our Sun experience a phase of strong mass loss, an evolutionary stage commonly called the Assymptotic Giant Branch (AGB) phase. During this phase, a combination of pulsations and dust formation drives a stellar wind at the surface of the star, gradually stripping the star from its material, and causing a macroscopic outflow. In turn, this leads to the creation of a vast circumstellar envelope (CSE).
High resolution observations of these CSEs show that instead of being spherically symmetric, these outflows exhibit a variety of complex geometries, from spiral patterns (see image below), to disc-like structures or even random structures. These structures are thought to be due to a companion obejct orbiting the AGB star, which then interacts gravitationally with the wind and perturbs the ouflow.

Hubble observation of the outflow around the AGB star CW Leonis (NASA/ESA).
Additionlly, the CSE around AGB stars is exposed to UV radiations from the surrounding interstellar medium, which photodissociate the neutral species present in the outflow. The ions and radicals, created by the photodissociation, then allow for a rich chemical activity that forms a wide diversity of molecules. The formation of molecules depend on the physical state of the outflow, for instance the local densities, temperature and the radiation passing through the gas. Some molecules can form in denser regions of the outflow, while other may only form in the colder outer regions. Thus, observing the emission of specific molecules in AGB outflows is a crucial tool to understand better the dynamics and state of the outflow.