How I export leads with an automation using multiple facebook ads accounts?

Hello everyone.

I’ve faced some problems exporting my leads using multiple facebook ads accounts.

Take to much time and my sales team is losing some business opportunity.

To export my lead to each sales group I need to export all leads from facebook forms, save the excel file and then I need to export and rearrange using some percentual rules (Group A receive 33% of the total leads, Group B receive 15% and so on).

I need to make an automation but I have no clue how I do that.

Can you help me out?