Perhaps something like this can already be accomplished with a simple script. You would have to run this script every time an AI-generated listing is created. However, this will only work properly if the required attributes are included in the listing.
There is already a script available that creates a title based on specific attributes (Brand, Size, Colour). Feel free to try it out so you get a general idea how it works. You find it here: