Computer-aided organic synthesis based on machine learning of millions of reactions in data databases enables integration of retrosynthesis and forward reaction prediction to predict reaction paths to a given molecular target from purchasable starting materials. With expert user input, the synthesis planning outcomes are converted into recipes executed by a modular continuous flow platform that is automatically configured by a robotic arm to setup the required unit operations and execute reactions.