Text this: A Variational Basis for the Regulation and Structuration Mechanisms of Agent Societies