Create JSON from an Array with 2 collections

Hello! I’m new to make.com
I am trying to use make.com to create multiple videos using creatomate, then stitch them together at the end.

To stitch the videos, I need a list of all the URLs of the generated videos from previous steps. I have to send that as a JSON payload to creatomate.

MY GOAL NOW: gather all of the URLs of the videos generated by creatomate, so I can build the JSON payload.

MY PROBLEM: I cant’t figure out how to create a JSON that uses the URL values from the output of the previous array aggregator as input (see screenshot). This array can vary in size. I don’t care about the array particularly, I just need a way to collect all of the URLs from the creatomate step and feed them into my JSON creation step.

I am also attaching my blueprint.

Hello! I’m new to make.com
I am trying to use make.com to create multiple videos using creatomate, then stitch them together at the end.

To stitch the videos, I need a list of all the URLs of the generated videos from previous steps. I have to send that as a JSON payload to creatomate.

MY GOAL NOW: gather all of the URLs of the videos generated by creatomate, so I can build the JSON payload.

MY PROBLEM: I cant’t figure out how to create a JSON that uses the URL values from the output of the previous array aggregator as input (see screenshot). This array can vary in size. I don’t care about the array particularly, I just need a way to collect all of the URLs from the creatomate step and feed them into my JSON creation step.

I am also attaching my blueprint. Note that I have a couple of steps that write to a google sheet, this is just for tracking purposes. The goal is really just to be able to use ALL the URLs generated by creatomate as input to a single JSON payload.

TY in advance!

Hello,
Try using Transform to JSON and Map URL array.

Thanks for your reply. When I do that, I only see the last item from the array:

If you need a JSON like this:

[
    {
        "URL": "url1"
    },
    {
        "URL": "url2"
    },
    {
        "URL": "url3"
    }
]

You can add a Text Aggergator module after the Creatomate module, with a comma , as separator

Then you can add it inside a [ ] on a Parse JSON module

Thank you for helping. I tried your suggestion, but the text aggregator runs them as separate operations, instead of a single operation with a single JSON text containing the 2 URLs

What am I missing to create a single JSON output containing all the URLs?

It runs twice because something behind the Creatomate module is returning 2 bundles and is connected to the Array Aggregator, to make it run once you have to connect the Array Aggregator or the Text Aggregator to that module to grab those bundles before they run one at a time

I’m not following what you mean by something behind the creatomate module.
Would you be so kind as to share a screenshot?

Hi
I managed to figure it out. For anyone else:

creatomate → array aggregator (with creatomate as source) → iterator → text aggregator (with the earlier parsed JSON step as source).

If you have the array list, use Chatgpt by creating a chat completion. You can use a prompt like this, for example:

"Create a JSON string based on this array using the following format:

[
{
“Video1url”: video 1 data
},
{
“Video2url”: video 2 data
},
{
“Video3url”: video 3 data
}

]