I just used Chat GPT this week to help create myself a Photoshop script for converting layers into smart objects, and for rotating them to the smallest layer bounds WITHOUT really knowing how to code. This thing is so powerful!