This sounds like a project I put up here if you are interested - Phas. The idea of the panes on Phas is they can contain ‘any’ data type… Also as you suggested it the design has coding constructs (ie conditionals/loops) integrated into every branch.
Here is a creative example showing a single prompt generating multiple panes of information multi-modal, this could then be accessed/edited by authorised Users/AIs.
I consider that we are at the event horizon of AI… There is a huge space ahead of us and everyone’s starting to realise that their footprint online is effectively their own ‘Prompt’, the small piece of intelligent direction we have carved out for ourselves. All these Prompts will form the basis of the stories we tell our children.