I get a campaign, then I make a report, than I get a list of ad sets and
I want to execute a loop inside of the workflow:
ad set x : get data, add a row, add a slide, aggregate the data
ad set x+1 : get data, add a row, add a slide, aggregate the data
etc.
and than I want all the aggregated data (the tool module from all 3 ad sets) I want to input to AI, work it and add to new slide.
But the workflow goes:
…get data 1, add a row 1, add a slide 1, aggregate the data 1, AI 1, slide 1, get data 2, add a row 2, add a slide 2, aggregate the data 2, AI 2, slide 2…
and I want:
…get data 1, add a row 1, add a slide 1, aggregate the data 1, get data 2, add a row 2, add a slide 2, aggregate the data 2, AI (only once), slide (only once).
How the F make it happen? I tried learning in the Academy, reading the instruction for arrays and speak with AI, but nothing works. Help.
I have array with no. of ad sets in iterator (so 3 in my example) and an aggregated array source iterator and text from tool. I am sure that mistake is somewhere in this setup.
blueprint (1).json (95.4 KB)
1 Like
Hey Monika,
what array is the Iterator processing? Can you share some screenshots of an execution to show what results everything is outputting?
I added in iterator array number of ad sets.
How do you want to see the output? Just the screen of executed scenario or anything specific?
1 Like
Just screenshots so I can see which module is producing how many bundles. Also can you show a screenshot of the Iterator module setup and the List Ad Sets output?
Ah OK, you don’t need the iterator, its not doing anything there. You map arrays inside an iterator, but this one is not an array. The List module is already producing a separate bundle for each item it finds.
So you can delete the iterator and change the source of the Aggregator to the Facebook List module.
3 Likes
99% success 
Last thing: I use tool to aggregate all insights from a ad set, and than aggregator to get those 3 boundles and input them to AI. But in msg I see only one.
Array have 3 boundles input, 3 collections output, than AI has in msg just 1.
1 Like
You’ve mapped the first item from the array instead of the entire array. You can switch this one to a text aggregator as well maybe and build the string you want to send to the agent.
Nope 
I added array to agregate all 3 boundles and text to sent it to AI.
But in the mean time I broke the whole script

So I have a presentation with 4 slides: cover, summary, analyse and recommendation.
blueprint (2).json (118.3 KB)
So I make a new presentation from a template after getting the campaigns, and then I get the presentation I made, to get the 4 slides. After that, I wanted to add data from ad sets to slide 3 (and obviously replicate it as many times as many ad sets I have).
So I used iteration to have ID object of slide 3.
The system thinks now it needs to make 4 requests to the get ad set, and than multiplied all by 4, making 42 AI requests 
I feel so stupid right now 
1 Like