How to 'store' dynamic created components

Hi,

I am currently working on a procedural river generator and rather than keeping the whole generator in the level i would like to store only the generated river as a separate actor.

So after the river is generated i am creating a new actor and than add the spline mesh components to it.
Initially it works as expected but the problem is, that as soon as the construction script of the actor is triggered i keep loosing the reference to the components.

Is there a way to permanently store the spline mesh components without having to keep the generator in the level? ( preferably with blueprints )

One thing you could do is right click on the river actor and select “convert to static mesh”. This will prompt you to select a location where you want to save it.

this looks like a valid option, is there a way to automate the process?