https://discord.gg/botpress logo
Studio Editor: Moving Nodes into Flows Efficiently
# 👀feature-requests
s
I will just speak for myself, but hopefully this resonates to fellow bot builders here as well 😄 Currently when I build a bot, I always create a testing node (be it standard or autonomous node) and connect to the Start block to make sure it works before connect it to the main flow. So as the progress goes, and as customer have more and more enhancing requests, there will be MORE blocks here and there, and from the main flow, I will start piecing things out that can actually be categorized and moved into a sub flow, just to declutter the main flow and make debugging life easier. But then that resulted me to spend a lot of time to move things into different flows, because currently the fastest way is to copy the node and paste into the sub flow, and then only connect the nodes again in the sub flow. It would be SUPER GREAT to be able to "draw a rectangle" on the editor to select the nodes, and right click move them into a sub flow, together with the connection intact, that will really speed things up so much! Can refer to the video I attached on what I meant by "draw a rectangle", thanks! https://cdn.discordapp.com/attachments/1336980260423598080/1336980261149343754/2025-02-06_16-28-58.mkv?ex=67a5c766&is=67a475e6&hm=3d08a7a5cafbb707eb33ade016e5f3bb11453755d0a4c2805e328a216a28e6ec&
w
that's a great idea
w
i like too
I notice that it is possibile draw a rectangle with SHIFT pressed and copy CTRL+C and paste CTRL+V all nodes selected in a subflow or in another bot
I don't try with Cut CTRL+X
If you paste into another bot, the issues arise with workflows cards in nodes because the IDs for sub-workflows change from bot to bot. If you have schema and workflow variables, you will need to recreate them manually
s
Interesting!!! Will give it a try 😯
hi how did u do CTRL+C tho, like i can't even CTRL+C and CTRL+V for a single node 🧐 I always right click copy node right click paste node
w
You did well with a single node, but my post is useful if you need to copy and paste multiple nodes together
s
for those that has issues with copy-ing the nodes, i found the culprit is simply because google chrome blocked it on default. once enable, u can bulk copy the node already https://cdn.discordapp.com/attachments/1336980260423598080/1366348074523295825/image.png?ex=68109e4e&is=680f4cce&hm=b45dac89cc5b850fa3fb1fbfa5fdd317414e5c764d260e023bab84150a4dfffa&
w
No way I have to test that
Does this work across different bots (tabs) as well ?
s
whoa o.o i tested, different bot works o.o both bot i tested are under the same account/ workspace id i bulk copy from bot A to bot B, it pasted nicely 😄
2 Views