This document describes a new technology called Instrument Top Sample Prep (ITSP) that automates solid phase extraction (SPE) directly on the autosampler of a gas chromatograph. ITSP uses proprietary cartridges that can be manipulated by the autosampler to perform SPE in a cost-effective manner without the need for additional expensive equipment. The autosampler syringe acts as the solvent reservoir, allowing SPE to be conducted in a miniaturized and automated fashion. ITSP cartridges integrate SPE into the workflow of analytical instruments to increase efficiency and productivity of sample preparation and analysis.