Hey, I have the following problem:
I scrape Instagram Stories with Apify and want to analyze and describe all stories with Google Gemini. I often have several stories and have each one analyzed with Google Gemini. I need the output as a text module. So with 6 stories, I have a text module consisting of 6 different descriptions.
Now the problem: I could easily solve similar use cases with Iterator and Text Aggregator. And now it doesn’t work here - why?
It’s really confusing and I don’t understand why the output of Gemini is not brought together in the Text Aggregator, but the individual operations remain?
Im Anhang seht ihr den Prozess als Bild sowie den Prozess als Blueprint in JSON.
Please help and an explanation why it doesn’t work here. Thank you very much!
blueprint-7.json (52.4 KB)
Hey Pascal, I’m guessing you have multiple bundles in the output of the ‘Get Dataset items’ module,
so you need to select the “Run a task” module as the source of your Text Aggregator instead.
If not, then share a screenshot of the “Get Dataset Items” module
Thank you! But what does this mean for me? Why I have to take this module as my source module?
Welcome to the Make community!
Setting the Correct Aggregator Source
You need to set the “Source Module” field of the aggregator to where the bundles are coming from. This is usually an iterator module, but can also be a search/list/repeater module, or even the trigger module!
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.
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