The medications in use for treating migraine are directed either towards inhibiting the characteristic migraine pain or towards preventing it from occurring. In this pursuit, ergotamine and sumatriptan class of 5-HT1B receptor agonists have been proved to be extremely effective. Further research into this field led us to design cyanopyridone derivatives that were synthesized through cyclization of 2-cyano-N-phenylacetamides with malonitrile and 2,3-dihydrobenzo[b][1,4]dioxine-6-carbaldehyde. The synthesized cyanopyridones analogs, when docked with active site of 5-HT1B receptor, showed better binding affinity compared to standard antimigraine medications. Additionally, in silico ADME prediction for drug-likeness and pharmacokinetics revealed that all compounds are safer and can be used as antimigraine medicine. The structure of the synthesized compounds has been elucidated on the basis of spectral analysis.