For the libretto, he freely adapted a 1733 French play by Philippe Poisson, "L’Impromptu de campagne", which had translated to German in 1794, as "Die Komödie aus dem Stegreif" (The improvised comedy).