Inclusion Criteria:  Patients with episodic migraine, diagnosed for more than 6 months. Patients with at least 4 headache days per month and a maximum of 15 headache days per month.  Exclusion Criteria:  Patients with major psychiatric illness. Patients participating in another clinical trial. Patients who do not meet diagnostic criteria for episodic migraine according to ICHD-3. Illiterate patients or those who are unable to fill the records independently. Patients with a previous history of filling in a headache calendar, in the 3 months prior to randomization. Patients who do not use a cell phone with Android OS. Patients who cannot read or write in Portuguese.