The present invention relates to a novel continuous flow process for the preparation of ivacaftor. The present invention also relates to a continuous flow process for the preparation of ivacaftor KSMs, 4-oxo-1,4-dihydroquinoline-3-carboxylic acid and 5-amino-2,4-di-tert-butyl phenol.