I'm still in the process of learning how to use node-red but I've got a decent grasp on a workflow that works well-ish for me and all the scripting I want to do, albeit it's a bit clunky. It primarily consists of 3 parts: an event is the input, a function does all the scripting, filtering, reformatting, and then an action or some other node is the output.
The problem I'm running into is that the communication from the function to the output node is pretty clunky because for every potential output that any function may have, it needs to have it's own entire output on the function. This just adds more annoying boilerplate to deal with, and I'd really prefer if I could just call those actions directly inside the function. Is such a thing possible? Is there some other workflow that might be a bit less cumbersome? Overall I'd really prefer to just use proper text-based scripting as much as possible.