The impossible flow: OpenAI + PDF files

Hello everyone.
I’ve searched through all the posts about the same thing for a while, and no one seems to give a clear solution. It is like an unsolvable problem

I’m trying to pass a PDF that I pull from Google Drive to the OpenAI node, but it’s literally impossible. It doesn’t matter if I put the G.Drive Download File node first and pass the result to a chat completion or an assistant or if I first pass it through an OpenAI Upload File node, nothing. And i did check the File retrieval function with the same result.
I see that there is a field to easily attach an image, why doesn’t the same exist for attaching files?

If anyone has achieved this, could you describe to me what I should pass to the OpenAI node and where to put it?

Thank you

I’m trying to do the exact same, but from OneDrive. I’m stuck on the last bit which is the openAI section.

I found best to use the HTTP to get the file ID and Name and then pass to openAI upload module

image

My challenge is that I’m stuck on this bit:

image

I hope this helps in some way

I figured it out!! Made a whole post about it

2 Likes