We developed new procedures in SerialEM and coupled them to a Python script that we developed to autonomously collect and process MicroED data generated from them in real time. The method involving collecting an atlas montage of the entire grid, followed by medium-magnification montages of the most promising grid squares and finally applying the data collection script to the crystals selected from the medium-magnification montages (Figure ). We used this approach to determine the components in complex mixtures. We used several mixtures in this study as proof of principle. Mixture A contained a several inorganic salts while mixtures B and C contained several saccharides and amino acids, respectively. These mixtures were analyzed using the pipeline to identify all their components.