Automate Helper and Automation Creation: For Each JSON Attribute Card?

Is there a way to get home assistant to read a file that describes different attributes and automatically generate helper input buttons and automations described on those attributes? I’m working on incorporating my spotify playlists, and I don’t like the services on offer through HACS. I was hoping I could get homeassistant to iterate through a json file and create automations and helper buttons based on a list of playlist ids that I provide.

I hope this community doesn’t mind if i bump this.