There are multiple threads related to the same topic. refer to them for details.
The Genius Loci package has the “Room ToElement” node, and Clockwork and Archi-lab also have similar nodes. Please check them and use whichever is suitable for your requirement