Running Workout Data Collection

I am using ChatGPT as a run coach to give me a run plan every 4 weeks based on the last 4 weeks. I want to pull the previous 4 weeks of run data from Health (or Garmin) and put that into notes, copy it to a clipboard so I can paste it into my chatGPT coach. I was trying to build it myself, but I’m having the hardest time building this. If I could just get one week and add it to a note, that would be awesome.