Can I merge the output of two modules into one?

Hello everyone!

I am using Eden AI for OCR, but today it failed for several hours. As a fallback, I am now using ILOVEPDF. This means that my output will either come from Eden AI or from ILOVEPDF.

Is there a way to ensure that, regardless of whether the output comes from Eden AI or ILOVEPDF, it always goes to the same module?

Due to my limited knowledge, I managed to get a working solution by creating two separate branches, but this doubles the effort required whenever I need to make modifications.

It might be helpful to note that both Eden AI and ILOVEPDF output plain text.

Thank you so much to whoever will choose to help me!

I wish you a great day.

Welcome to the Make community!

That’s what the error directive Resume allows you to do.

This way, the scenario can continue the rest of the same flow even if you encounter an error.

For more information on error handling, see:

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.

Hey Sam,

thank you so much for sharing your thoughts with me!! :folded_hands::folded_hands::folded_hands::folded_hands::folded_hands::folded_hands:

Based on my understanding, the “error directive resume” allows me to provide alternative content when a module fails.

However, I don’t have default content to provide, since all the documents are unique.

I need Eden AI to run, and if it fails, I need ilovepdf to run.

I can’t run ilovepdf every time just in case, because it would double my API costs.

Did I misunderstand how the error handler resume works?

For now, I did as it follows:

If there is an error, it is ignored.
The router checks if Eden AI did provide content
If it didn’t, ILOVEPDF will be used.

However I still have the same issue, two identical branches.

What would be great would be being able to run eden ai, if there is a mistake run ILOVEPDF and then provide to the resume handler the data generated by ILOVEPDF.

Would that be achievable?

Thank you so much!

Example

Here is an example of how your scenario could look:
Screenshot_2025-03-18_140338

This is just an example. Your final solution may or may not look like this depending on your requirements and actual input data.

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.