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 « J'aime »
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!
Diviser le nom de fichier et supprimer le dernier segment fonctionne bien, mais j’ai aussi utilisé une étape batch locale avant le téléchargement. renamer.io s’est avéré utile pour cela, car je peux prévisualiser les motifs, ajouter une numérotation ou extraire les métadonnées avant que n8n ne touche à quoi que ce soit. En associant cela à votre étape de déplacement de File ID, tout reste organisé, et vous pouvez laisser OpenAI gérer la logique avant/côté/arrière sans vous soucier des extensions.