How to download PDF files in make without working with binary data

Hi,
I am trying to download a PDF file from AIRTABLE to MAKE to then upload to GPT. However, the HTTP module downloads the file as binary. I can’t see how I can send the PDF file to GPT for analysis.

I think that I am missing something fundamental in how to manage files in Make but I can’t seem to find document to explain this or how to solve.

Any guidance would be amazing. Thank you!

You can use the “Message an Assistant” module. If you want to use “Create a Chat Completion”, then you need to use another module to convert the PDF to text first.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

HI @samliew , that is great - all fixed. It has been discussed in more detail in other posts, but the basic scenario for anybody wanting to download Airtable file and send to GPT for analysis is:

  1. Download the file from Airtable using HTTP
  2. Upload the file to GPT using OpenAI UPload A File
  3. Create Vector Store in OpenAI
  4. Move file to created Vector Store using OpenAI Add Files To A Vector Store
  5. Have Agent process file using Message an Assistant

Hope this helps people hitting the same issue in the future.