from the past:
to elaborate:
I’m afraid just generating strips/patches with scripting could hardly give you meaningful connections. Cables might go into any port, but most modules don’t work well with unexpected types of signals, some ports wants gates, some cv, some audio etc. It is interesting to go against this from time-to-time, but mostly it just results in silence/noise.
So a generator would either need explicit knowledge about which ports expect what, or intuition based on prior examples, which could come from machine learning techniques.