Hi, I’ve learned how to generate images using UserApi and webhooks in three scenarios from YouTube.
User API
Webhook → UserApi
Webhook → HTTP → ~~~
My Goal: generate multiple images.
However, when given multiple prompts, I am unable to plan a scenario using iterator or repeator.
I could not find any source in goole or make.com community.
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:
The Array Aggregator module is very powerful because it allows you to build a complex array of collections for a later module’s field to map multiple items (collections) to it.
This is done using the “Target structure type” field in an Array Aggregator module.
As you can see, the “Map” toggle on complex fields are used when you have an array. You can easily build an array variable to map to a future module’s field, by using an Array Aggregator module and select the “Target Structure Type” as the future module’s field you have mapped the array into.
Example
Here is an example of how your scenario could look:
This is just an example. Your final solution may or may not look like this depending on your requirements and actual input data.
Hope this helps! Let me know if there are any further questions or issues.
But as you see, using userAPI needs a webhook in an another scenario.
Becase it is not the official api of Midjourney, it needs a webhook to receive a signal when generation of midjourney ends.
my version of creating image using userapi is these 3 steps.
However, I cannot create a scenario where a signal is sent, and the next scenario starts only after the last generation of the User API iteration is completed, because each generation sends a webhook.
how can i parse a parameter to an another scenario like you??
and moreover, i want all the hash of images made to be sent to an another scenario but i think there isn’t a way to do it. am i right??