# Help with Passing Array Aggregator Output to ChatGPT

**URL:** <https://community.make.com/t/help-with-passing-array-aggregator-output-to-chatgpt/64061>\
**Category:** Questions\
**Tags:** arrays\
**Created:** [December 15, 2024, 1:31pm UTC](https://community.make.com/t/help-with-passing-array-aggregator-output-to-chatgpt/64061 "2024-12-15T13:31:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpduchesneau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/jpduchesneau/32/57017_2.png) [@jpduchesneau](https://community.make.com/u/jpduchesneau)\
**Post date:** [December 15, 2024, 1:31pm UTC](https://community.make.com/t/help-with-passing-array-aggregator-output-to-chatgpt/64061/1 "2024-12-15T13:31:14Z")

</div>

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!

 ![Screenshot 2024-12-15 at 8.28.27 AM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/4/04b6c36e155d742ae4b832065a991f0a88002ef9.png)

 ![Screenshot 2024-12-15 at 8.28.16 AM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/f/e/fe087df18f84daf371dcd4e26498556af9143170.jpeg)

 ![Screenshot 2024-12-15 at 8.28.44 AM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/8/4/84eb7682ad0ef9df4a9d5b7f53033138c5f17941.png)

 ![Screenshot 2024-12-15 at 8.29.03 AM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/8/4874ae485cf4f6975e00afa467d6e4a486b22011.jpeg)

---

<div class="post-metadata">

**Author:** ![T\_Messi](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@T\_Messi](https://community.make.com/u/T_Messi)\
**Post date:** [December 15, 2024, 4:28pm UTC](https://community.make.com/t/help-with-passing-array-aggregator-output-to-chatgpt/64061/2 "2024-12-15T16:28:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dilipborad](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/dilipborad/32/53211_2.png) [@dilipborad](https://community.make.com/u/dilipborad)\
**Post date:** [December 15, 2024, 4:29pm UTC](https://community.make.com/t/help-with-passing-array-aggregator-output-to-chatgpt/64061/3 "2024-12-15T16:29:36Z")

</div>

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://platform.openai.com/docs/examples/default-meeting-notes-summarizer)  
[https://www.reddit.com/r/ChatGPTPro/comments/13n55w7/highly\_efficient\_prompt\_for\_summarizing\_gpt4/](https://www.reddit.com/r/ChatGPTPro/comments/13n55w7/highly_efficient_prompt_for_summarizing_gpt4/)  
Also directly ask in GPT UI.

* * *

💡P.S.: Always search first, Check [Make Academy](https://community.make.com/t/make-academy-course-overview/29699). If this is helpful, [Mark Best Answers as Solutions](https://community.make.com/t/mastering-the-make-community-mark-best-answers-as-solutions/4685)✅ and give 👍 If you need expert help or have questions? Contact or comment below! 👇

---

<div class="post-metadata">

**Author:** ![jpduchesneau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/jpduchesneau/32/57017_2.png) [@jpduchesneau](https://community.make.com/u/jpduchesneau)\
**Post date:** [December 15, 2024, 5:14pm UTC](https://community.make.com/t/help-with-passing-array-aggregator-output-to-chatgpt/64061/4 "2024-12-15T17:14:39Z")

</div>

Thanks Tatiana for getting back to me.

---

<div class="post-metadata">

**Author:** ![jpduchesneau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/jpduchesneau/32/57017_2.png) [@jpduchesneau](https://community.make.com/u/jpduchesneau)\
**Post date:** [December 15, 2024, 5:17pm UTC](https://community.make.com/t/help-with-passing-array-aggregator-output-to-chatgpt/64061/5 "2024-12-15T17:17:28Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![dilipborad](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/dilipborad/32/53211_2.png) [@dilipborad](https://community.make.com/u/dilipborad)\
**Post date:** [December 15, 2024, 5:43pm UTC](https://community.make.com/t/help-with-passing-array-aggregator-output-to-chatgpt/64061/6 "2024-12-15T17:43:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [December 29, 2024, 5:55pm UTC](https://community.make.com/t/help-with-passing-array-aggregator-output-to-chatgpt/64061/7 "2024-12-29T17:55:25Z")

</div>


