Auto-distortion correction in RT

auto distortion can’t be automated yet, unfortunately. (I think it would be worth doing though).
but if you have a LCP and want it to be automatically applied, you can have a look at dynamic processing profiles:

http://rawpedia.rawtherapee.com/Dynamic_processing_profiles

that’s one of the use cases they have been designed for.