Global Constants / Variables

Global Constants / Variables

It would be great if there were a Global Constant feature.

The idea here is for managing constants that are used in multiple Flows and Subflows, but might change over time. The idea is that the change could be made in one place and cascade to all future executions of any Flows for Subflows that use that information.

The specific use case that sparked this idea for me is that I have a set of business rules that I use as part of many different AI prompts that will be used in many totally different Flows. Those rules will be amended in the future, and changing every individual Flow is going to be a pain in the butt.

One can use Subflows (Subflow --> Set Variable --> Return Variable) for this, and custom functions could also be pressed into service. However this is kludgey and not good UI. If there were a good system for Global Constants that could just be picked from the configuration window, that would be very user-friendly.

I could also see the UI for the management of these Global Constants being really good. Let the user pick the variable type (string, key-value (map), list, decimal, etc.) when creating and then an entry screen that is specific to the variable type chosen.

I think that this could be a pretty cool addition to the functionality of Flow.

Thanks for your consideration!