I’m pretty sure I can do this but I’m checking before I start something I won’t be able to do.
I have a workflow for checking email and sending the summary to a Telegram bot. I would like to use it for multiple email acocunts.
Can I (should I) put multiple crons, one for each email, in the same workflow and have them all “meet” at a common point where I start processing the incoming data?
OR
is it better to take the processing part and make it a sub-workflow then have separate workflows for each email address that call the sub-workflow?
Thanks,
L
P.S. I’m not sure if this is the type of question for “Build My Workflow” or not.
You can totally have them all converge into a merge node. You can set it to Wait for all inputs to continue.
Typically, you would make a sub-flow if you want to reuse it elsewhere, to encapsulate complex logic or when you want to manage per-workflow memory (when each branch will process a lot of data).
Feel free to mark this as the solution if it helped
Hm,m, I hadn’t thought o f putting them all together. Let me see if I want to do that. I wanted to run them independently and have separate reports mut merging them might be an interesting proposition.
I will start with my original idea and then I will see about doing more.