Dynamic Behavior Tree

I want to make like this game(Welcome to Carnage Heart ! - YouTube)
but in the case that game player can make AI freely, I think Behavior Tree has to move dynamic.
How can I instantiation dynamic Behavior Tree?