How to aggregate multiple email attachments + subject/body

Hi,
I’m working on an automation in Make.com. The goal is to read the content of email attachments (if any), concatenate them, and send the combined text to a ChatGPT prompt.

In addition to the attachments, I also want to include the email subject and body text in the prompt.

The issue is that the Text Aggregator module can only connect to one module. If I use multiple Set Variable modules with the same variable name, the aggregator only sees the content from its own branch — meaning it only gets the attachment text from that specific path, not from all of them.

How can I combine the text content from multiple attachments, along with the email subject and body, and send the whole thing in one prompt to ChatGPT?

Thank you

1 Like

Hi @Toledano Welcome to the community!

When you use set variable modules, you can use Get variable module to get all variables set in different set variable modules by name (names are case sensitive) in last route in clockwise direction and connect further steps after get variable.

Best,
@Prem_Patel

1 Like

Hi,
It works, thank you !

1 Like

Glad it helped! @Toledano

Please mark reply above as :white_check_mark: Solution which helped!

Best,
@Prem_Patel