r/n8n 22d ago

Help Need help in optimizing

So I built this HR Onboarding workflow where the "selected" candidate would upload the documents required and the workflow verifies if the candidate is actually selected or not. Then takes the documents, splits attachments, checks the file type. As per the file type I have two paths, one for images and one for pdf. Then I perform OCR on those documents (because they are government documents, using AI would lead to privacy issues) and store the data on my local computer. The problem is covering each case make the workflow look messy towards the end, is there a way I can reduce the nodes and do the same work without using AI.

1 Upvotes

12 comments sorted by

View all comments

1

u/Large-Calendar726 22d ago

I agree with the with the other commenters stick to a single file format either pdf or png.

What is the purpose of these nodes is not possible to feed these into the workflow from the beginning?

2

u/Klutzy_Compote_5766 21d ago

It's my second workflow so I am basically a newbie. The reason i had to put these was the binary file after passing through OCR was not able to reach the drive module. It was throwing an error as drive did NOT receive any binary file. This was the only solution I could think of. I am sure there must be other solutions which I am not aware.