First of all huge thanks to @jabbson for creating the majority of this, he did mention integrating openai to identify image positions for the custom naming “font,side,back etc” and did say the cost of the operation might be expensive, i chose to go this route to avoid that cost, any tips on how i can improve this workflow overall too? it is working great for the moment.
i only have 1 issue so far, for example the image name is 1.jpg, the folder name is jeans black, after the if/rename it is leaving the .jpg in the middle of the file name as i am manually changing the number “1”, so it looks like jeansblack.jpg_FRONT.jpg, is there a way to remove that or add it back to the end of the new file name?
having the images in the folder always named correctly 1-2-3-4-5-6 is not a problem for us as we save once from photoshop anyways so the workflow can be very structured assuming all information will be the same forever.
also my next task is to move these completed renames to a “complete” folder, what would be my best way to do that? i was doing some research and could not find anything/not sure if its working on n8n yet.
When you are changing the name you could exclude the extension by splitting the name by . and excluding the last portion, something simple should do, like
full_name_with_ext.substring(0, full_name_with_ext.lastIndexOf('.'))
there is Move file operation for google drive. Create a completed folder, grab the File ID and use it to move it to that newly created forlder.
1 „Gefällt mir“
If this helped you, kindly mark the answer as solution. Thank you.
Cheers!
PERFECT thankyou!! there is mark as solution option for me how do i do that hmm
Ah never mind, it’s all good. I forgot we are not in “Questions” thread, so there are no solutions here. 
Glad I could help!
Die Aufteilung des Dateinamens und das Weglassen des letzten Segments funktionieren gut, aber ich habe zuvor auch einen lokalen Batch-Schritt vor dem Hochladen verwendet. renamer.io war dafür sehr hilfreich, da ich Muster in der Vorschau sehen kann, Nummern hinzufügen oder Metadaten abrufen kann, bevor n8n etwas anfasst. Wenn man das mit deinem File ID move Schritt kombiniert, bleibt alles ordentlich, und dann kannst du OpenAI die Front/Side/Back-Logik übernehmen lassen, ohne dich um die Dateitypen kümmern zu müssen.