Make AI not always choose the shortest path

This seems to be very close to what I’m trying to achieve, thank you!

The only thing that I’m struggling right now is that I’m using Behavior Tree for my AI. More specifically “Move To” node. Inside this “Move To” node I can manually set Filter Class.

But is there a way how I can dynamically change this filter classes an assigned it to “Move To” node?

Just like the way it works inside AI’s Controller with “Move To Location”, where you can set Filter Class each time you call this node.