How to create a user interface similar to Behavior tree or dialog plugins?

How to create a user interface similar to Behavior tree or dialog plugins? (Like the screenshot)
I want to create a user-friendly interface with dialogs that can go to other questions, but also have many answer options and so on. At the same time, visually lay out on the interface a block that corresponds to the selected type of answer options (one answer, many answers, etc.) And then stretch with lines to the next block
I’ve been looking for a possible implementation of such an interface for 2 days, but so far I haven’t found anything even close. Help, please, at least make a visual interface for this. Just placing blocks that can be connected to each other


Looking for the same. No luck until now.