[FEATURE] Ability to 'import' an existing json flow -or- a marketplace template 'into' the current canvas.
It would be helpful to import an existing flow into the working canvas
There are a multitude of helpful 'snippets' of flows that we usually have to manually re-create. Often times, the 're-creation' process doesn't quite work well on first attempt. The templates on the marketplace have been vetted, and it would be a time saver, and avoid initial pitfalls, if we could just import an 'existing working bit' into the canvas.
isnt that the Use Template button?
Not really. I'm sure it's close enough in terms of the code that performs that 'use template' feature, OR the 'load agents/chatflow' feature.
What I'm talking about is the ability to import a 'portion' of a flow into another canvas. I'll elaborate below, but what I'm talking about is akin to copy/paste 'one portion of code' into 'another portion of code'. (Not to be confused with the reusable custom nodes... which is in itself a great feature).
I think the 'better ux' for the feature I'm proposing, would be to select/highlight a series of nodes from one window's canvas/chatflow and paste it into another canvas/chatflow. The selected nodes and their parameters would be copied/pasted (along with their connecting edges).
That said, and getting back to the original feature request, the alternative and perhaps easier feature to implement, would be the ability to have those 'reusable series of already connected/configured nodes' saved as json (via the export agents/chatflow), then while working on an already started canvas (which would have nodes already) we would import that json 'snippet' with nodes, right into the working canvas (via an import into canvas button or menu item).
The nodes in the 'snippet' would not remove the existing nodes/work. We would just add the nodes to it.
FYI: I'm going to try to implement the feature myself, but I'm a very green in the code-base still... if I succeed, I'll let you know/submit a PR for your consideration.
Now that I think of it... it should be 'identical' to the 'load chatflow' feature, but without removing what's already in the canvas, so it should (should haha) be a very simple implementation.