@funny_fan5562 yes, you can definitely automate the insertion of data and the application of formatting rules in InDesign using Data Merge and styles.
Is there a function that can adjust the spacing and grasp the meaning of each text element (ex, name, position, etc.) with artificial intelligence? Have you queried this in your favorite AI app?