The system should classify the inbox mails between "high", "medium" and "low" prioritiy, summarize them and should provide the output to the user for each category in a single message;
Example:
**High Priority -- 3 mails found**
Mail 1 : Summary ; subject line ; sender detail
Mail 2 : Summary ; subject line ; sender detail
Mail 3 : Summary ; subject line ; sender detail
**Medium Priority -- 2 mails found**
Mail 1 : Summary ; subject line ; sender detail
Mail 2 : Summary ; subject line ; sender detail
**Low Priority -- 1 mail found**
Mail 1 : Summary ; subject line ; sender detail
However, I am not able to combine the summary of all types of mail into one, so that a single message can be sent to the user through telegram. (currently each mail and its summary is being sent in a separate message in telegram).
Need help how to do that.
Attaching my n8n workflow here: