In the present work, two reaction-based generative models for mol. design are presented: Growing Optimizer and Linking Optimizer.These models are designed to emulate real-life chem. synthesis by sequentially selecting building blocks and simulating the reactions between them to form new compoundsBy focusing on the feasibility of the generated mols., Growing Optimizer and Linking Optimizer offer several advantages, including the ability to restrict chem. to specific building blocks, reaction types, and synthesis pathways, a crucial requirement in drug design.Unlike text-based models, which construct mols. by iteratively forming a textual representation of the mol. structure, and graph-based models, which assemble mols. atom by atom or fragment by fragment, our approach incorporates a more comprehensive understanding of chem. knowledge, making it relevant for drug discovery projects.Comparative anal. with REINVENT 4, a state-of-the-art mol. generative model, shows that Growing Optimizer and Linking Optimizer are more likely to produce synthetically accessible mols. while reaching mols. of interest with the desired properties.