Help with Passing Array Aggregator Output to ChatGPT

Hi everyone,

I’m working on a simple 4-step scenario:

  1. Check for emails sent to a specific address.

  2. Use the Array Aggregator to combine these emails into a single output.

  3. Send the aggregated content to ChatGPT to summarize.

  4. Email the summary back to me.

Step 1 works perfectly — the scenario captures the emails as expected.

Step 2 also seems fine, as I can see the aggregated data in the Array Aggregator’s output.

However, in Step 3, ChatGPT doesn’t seem to receive the output from the Array Aggregator. I can’t figure out why this is happening.

Can anyone please tell me what I’m doing wrong.

I attached some pictures to show you what I’ve done.

Thanks in advance for your help!

Hello

Instead of passing the full array, maybe use a map function to get the value of the body.

ChatGPT might not be a fan of having an array passed in its prompt.

Hello @jpduchesneau,
Instead of Array Aggregator use Text Aggregator to combine all mail content in a single string with proper context.
When you directly pass the Aggregated array result to GPT they consider it as a collection instead of a string. That’s why GPT can’t understand the context.

Another very important thing is to give proper context to your GTP prompt. Also, tell them this is my type of input and I need output in this specific format.
The prompt is always a combination of Input, Process and Output.

Example prompts
https://platform.openai.com/docs/examples/default-meeting-notes-summarizer
https://www.reddit.com/r/ChatGPTPro/comments/13n55w7/highly_efficient_prompt_for_summarizing_gpt4/
Also directly ask in GPT UI.


:bulb:P.S.: Always search first, Check Make Academy. If this is helpful, Mark Best Answers as Solutions :white_check_mark: and give :+1: If you need expert help or have questions? Contact or comment below! :point_down:

3 Likes

Thanks Tatiana for getting back to me.

Thank you so much @dilipborad!

That was really helpful! It’s working fine now with the Text Aggregator.

As for the context, you are absolutely right. I had them but removed them when I tried to do troubleshooting. I included a proper Input, Process and Output setup.

Thanks again for your help!

Hello @jpduchesneau,
If this solves your issues regarding this topic then please mark it as complete then it helps others to identify. :+1: