Create lead score and automation based on past purchase data

I’m trying to find out how to analyze contact data from past sales to create more effective automation to identify other leads that fit the same mold as they did. Who is an expert on this?