Script to automate add/resize datafile in Oracle ASM Storage

Hi all,

Could anyone please share ideas or logic on how to automate add/resize datafile in Oracle ASM Storage for Oracle RAC/Single Node databases when any tablespace space alert is trigerred by OEM?

Thanks for your help and time on it!

Thanks&regards,
a1_win