ChatGPT Structured Data (Split Collection into Multiple Bundles)

Hey guys,

First post on here!

So here’s the goal and the problem.

The goal, is to take an email from an incoming mailhook, the email contains two sets of data I need to use. The first is person information for an order, ie, name, email, number, address, all the usual, that part is fine. The second part is the product details, the issue I’m having is that as soon as I’m dealing with more than one product, I can’t get it to work.

I’m sending this data to Monday.com, using the person information (which I refer to as Top Line) to create the item, and then create multiple subitems (Bottom Lines) per product.

I’ve tried using iterators and aggregators but it seems to be pushing everything through all at once, ot creating subitems as intended.

I don’t know if it’s because I need to get the GPT module to spit out multiple arrays or what not, but I’m a little stuck having tried everything I can think of.

(also the GPT modules were just one module to begin with but I tried splitting them into Top and Bottom Line thinking that would help).

Any help would be incredibly appreciated!

I’ve attached some screenshots of the flow and the GPT module in itself. If there’s anything else I can get anyone please do let me know

Welcome to the Make community!

OpenAI has no concept of bundles. You’ll need to use an array at the top level instead of individual fields.

This will allow you to put that array into an Iterator module to split them into bundles.

samliewrequest private consultation

Join the unofficial Make Discord server to chat with us!

1 Like

Appreciate the tip!

When you say use an array at the top level, how do you mean?

I’d previously set up to try run it with this setup but no luck.


The Structured Data in your second screenshot should be converted to an array of collections, currently it is just a collection.

samliewrequest private consultation

Join the unofficial Make Discord server to chat with us!

1 Like