It seems that we can only add a text box by selecting it from the side menu. The text box is not kept in the diagram-as-code realm, disconnecting it from the rest of the diagram.
If the diagram as code provided a text box element, we could hierarchically add explanations, links, and any extra information to existing groups.