Binding text via UMG failing

So I got this to work…but I am not sure it is the best practice… So let me share.

So in the bind function event I created a function that runs the name generation script and holds all the data for the names. Then in the bind I fire that event and get the variable holding the name.

I feel like this is not a clean way to do this and I would rather there be a central location for this data so the function can be used in other ways and I kind of like the data structs to be exposed the in the enemy AI class but it does function. So I would like to change my original question to - IS THIS a good way of doing this?