How to format JSON data into Parameters and Data

I’m using Open AI on make automation with the transform text to structured data module to parse CV/resume data from a file on One Drive.

It’s been okay some of the time but I’m getting the following issues

  1. Occasionally it’ll parse the structured data well in the below sample format at the bottom of the post however sometimes it will just return the name of the file or the file URL. Despite not changing the description or prompt.

  2. Secondly when I get the structured data it is outputted as one bundle so all of the sample format would be one singular output. However, with another scenario built which parses emails it worked perfectly. Due to the fact I added data definitions for around 10 lots of data I needed. This then returned the below summary data which was great as it enabled me to then use specific bits of data like just the first name “John” for example.

  3. As Resumes/CV’s could have endless amounts of different data definitions and outputted structured data for employment history and education. Is there a way of getting the module to automatically define the definitions based on the JSON data it’s returned? Seeing as it’s already picked up that Name is the parameter and John Smith is the data to return?

Summary Data:

First Name: (array)
Output 1. John

Surname: (array)
Output 1. Smith

Sample Format:

“name”: “John Smith”,
“location”: “England, United Kingdom”,
“mobile”: “+4400000000”,
“email”: “”,
“personal_profile”: {
“education”: [
“degree”: “MSc in Project Management”,
“institution”: “University of Life”,
“years”: “1901 – 1903”
work_experience": [
“position”: “Worker”,
“company”: “Employer”,
“duration”: “Sep 1905 till present”
“position”: “Worker”,
“company”: "Employer ",
“duration”: “Oct 2022- June 2023”