I was looking through the threads to see if this idea was suggested, and this seems like the closest, i was thinking maybe a building similar to the equipment gantry could be used. I would suggest something like this:
You would have a 3x3 building/assembler/gantry, it would have 4 interactable locations (similar to the gantry or some objects in AAI) the lower left would be the factory building input, the lower right would be the factory building output. The upper right would be the blueprint desired inside the factory. Finally, the upper left would be the items required by the blueprint, this would need an internal storage of some significant amount. multiple could be used successively in order to build multiple parts of the factory to get around the upper left internal storage limit.
Thinking the blueprint location could be manipulated with aligning it to a grid, perhaps?
I know nothing of actually modding factorio, but this is how it'd work in my head. If it isn't possible, it isn't possible, but figured my idea might help. This mod is definitely one of my top favorite mods. thanks for making it <3