Replace components upon import automatically

I would like to import SketchUp models containing different components that represent plant location and species from LandFX. Then replace them automatically with a speed tree model by pre-assigning those models to each specific SketchUp component name. I assume this is possible with a custom script/plugin but I don’t have experience in that realm.

Does anyone have any advice or resources on how to accomplish this?