Doctors prescribe triptans for migraines based on a few key factors. If OTC pain relief does not work for your migraines and you do not have contraindications such as heart conditions, take other medications that may have interactions, and are between the ages of 18-64, a healthcare provider may prescribe triptans for migraines. You are more likely to be prescribed triptans if you experience frequent migraine episodes or experience severe pain.