What amaal can i do to meet Imam Mahdi aj.Either in my dreams or in person.

Imam (a) meets people who are pure in their heart, sincere in devotion and are humble in the path of Allah (swt). It does not necessarily involve Amaal or to be a scholar etc

But it is highly recommended to keep praying to Allah for the blessed meeting and not to give up. Sometimes we meet him in person or In dream but we don’t recognise him.

Dua Ahad every morning for at least 40 morning
2 Rokah after fajr and gift it to Imam (as)
Give Sadaqa on behalf of Imam
Improve Akhlaq and relationship with Allah