Process 5 images as one

I’m working on a flow where I want to upload 5 photos from Dropbox and send them to ChatGPT as one single set. I have something working right now, but I’m getting 5 separate responses from ChatGPT, while it’s important that ChatGPT gives one unified response based on all 5 photos together.

My current setup is:
Dropbox (Watch Files) → Dropbox (Create a Share Link) → Array Aggregator → OpenAI

What am I doing wrong, and how can I make sure that the 5 photos are sent to ChatGPT as one complete set?

Does the Module Require You to Map File Data?

Did you forget to download the file using the file’s link/URL? If it’s not downloaded to the scenario, the next module can’t access the file binary data (contents).

To do this, you can use the HTTPGet a File” module with the file URL that you need to download. Your file has to be publicly accessible on the internet (doesn’t require authentication).

Or you can use the Dropbox “Download a file” module.

More Than One File?

If you have an Array of multiple file URLs, you can use an Iterator module, and map the resulting bundle value/URL to the “Get a file” module.

To download multiple files before proceeding to the next module, you can use an Array Aggregator.

Combining Bundles Using Aggregators

Every result (item/record) from trigger/iterator/list/search/match modules will output a bundle. This can result in multiple bundles, which then trigger multiple operations in future modules (one operation per bundle). To “combine” multiple bundles into a single variable, you’ll need to use an aggregator of some sort.

Aggregators are modules that accumulate multiple bundles into one single bundle. An example of a commonly-used aggregator module is the Array aggregator module. The next popular aggregator is the Text Aggregator which is very flexible and can apply to many use-cases like building of JSON, CSV, HTML.

You can find out more about the other types of aggregator modules here:

Question: Which is the best aggregator do you think you’ll need for your use-case?

Mapping a Specific Structure Into a Complex Field

If you have an array of collections, in programming terms, this is called an array of objects, or an array with non-primitive data types (“complex”).

The Array Aggregator module is very powerful because it allows you to build a new complex array of collections that matches a later module’s field to map multiple items (collections) to it. Such fields initially would allow you to manually add items, but you can toggle the “Map” switch to the “on” state and map a whole array into a single field.

This is done by selecting the “Target structure type” in an Array Aggregator module.

As you can see from the above example, the “Map” toggle on complex fields are used when you have an array variable (like from an array aggregator). Other combinations of modules may also allow you to generate an array that matches a future field’s array structure, like “Aggregate to JSON + Parse JSON”, or “Create JSON + Parse JSON”, but this is an advanced topic.

Question: Are you mapping your array into a field that accepts more than one item/collection?

Example

Here is an example of how your scenario could look like:
Screenshot 2025-05-29 213632

Screenshot 2025-05-29 213544

This is just an example. Your final solution may or may not look like this depending on your requirements and actual data.

For more information, see “Mapping with arrays” in the Help Centre. You should also do the Make Academy, which also covers the use of Iterators & Aggregators.

Hope this helps! Let me know if there are any further questions or issues.

@samliew