The goal of the protocol presented here is to study the transcriptomic response of endosphere-isolated Bacillus mycoides to potato root exudates. This method facilitates the identification of important bacterial genes involved in plant-microbe interactions and is in principle applicable to other endophytes and plants, with minor adjustments.