Hey makers,
I collect a URL from a webhook that points to a file in firebasestorage.googleapis.com . I need to collect that file for conversion to structured data and manipulation, and I am trying to use the google cloud firestore module to get the document. I cannot get the filepath to structure properly.
The URL collected from the webhook follows this pattern:
“https://firebasestorage.googleapis.com/v0/b/projectname.firebasestorage.app/o/projectfolder%variable_specific_to_user_account%2Ffilename_part1%20filename_part2%20filename_part3%20filename_part4%20filename_part5%20filename_part6.docx?alt=media&token=xxyy2211zzqq3344”
where
variable_specific_to_user_account = the folder that a user login is assigned for all files relative to their work. This will be important for uploading the finished work back into.
filename_part1 to filename_part 6 = the easy to read filename uploaded to the folder, broken up by the spaces in the name ( ie - How Are You Today My Friend.docx = %2Ffilename_part1%20filename_part2%20filename_part3%20filename_part4%20filename_part5%20filename_part6.docx )
The URL contains a variable I understand I can capture by potentially using the Tools - set variable module with the Split function, but I have yet to get it to work correctly. I am popen to any other solution that will get me through this as I have spent many hours trying to get past this block and my project is way behind now.
Subsequently, I will have to upload back to this same user_specific_folder once I manipulate the file using some LLM (probably OpenAI although the landscape changes rapidly). I would like advice in advance on how to do so because I fear I will find some other hangup the other way around, lol.
Thanks so much for reading through this and I hope one of you kind souls can help me out here.
FYI - This is my latest attempt at the set variable function just to convert the URL and it just ouputs the URL in quotations"