My custom n8n node ‘Acme’ offers ‘login’ and ‘submit’. Choosing an option shows a dropdown, yet separating nodes creates two core nodes. How can actions be truly nested?
I’ve experimented with similar functionality in n8n, and my experience is that the platform doesn’t offer a native mechanism for truly nesting action nodes under a parent node. In practice, I’ve ended up combining distinct operations into a single node by conditionally rendering their options based on internal logic. This approach can work, but it does require a bit of custom coding to mimic a hierarchal behavior. While it might not provide the clean separation of functionalities, it allows for a consolidated user interface within a limited n8n environment.
In my experience, while n8n does not provide an official way to nest action nodes as a parent-child structure, it is possible to simulate this behavior by leveraging conditional fields and custom display logic within a single node. By defining parameters that dynamically adjust based on user selections, it can feel as if actions are grouped under a parent action. Although this method requires extra coding for tuning the UI responsiveness, it has proven effective in creating a more intuitive experience even in the absence of native support.
i’ve played around with this. n8n doesnt really allow true nestin. you can hack it together by dynamically showing or hiding actions, but it can get messy. not the clean UI setup you might want, so it’s more of a workaround than a real solution.
I encountered the same challenge and ended up architecting my custom node a bit differently. I implemented a primary selector that, based on the user’s choice, dynamically reveals the corresponding parameters for each operation. This method, while not providing a true nested structure, gives a more unified and streamlined user experience. It involves careful planning of the conditional rendering and data passing, but it essentially creates a pseudo-hierarchy within one node. In my experience, it strikes a balance between flexibility and ease of use, even if it requires extra coding attention.