OCR - Attachements from EMail and GPT

hello dear community,

since i got such great help here last time, here is a new case: i retrieve emails via imap. attached are several pdf’s, which i want to read in one run via ocr-module (PDF.co) to check them with a GPT-module and create different predefined variables from the data, with which i then fill a google docs-template. how can i bundle all the pdf’s into one and then send it through the ocr. however, some of them could be large data packages… what is the best way to deal with this?

alternatively, one customer has two pdf attachments, only one of which interests me. i haven’t yet figured out how to take only this one into account …

many thanks in advance and best regards

dennis

Hey Denis,

First you can use an iterator to go through the attachments and only filter the ones you are interested in. Then PDF.co has a Merge a PDF module that you can use to combine them in a single PDF for further processing.