Combine multiple operations into one array

What are you trying to achieve?

Here’s what I’m trying to achieve: I receive information from a form, and I want to combine it all into a single, easy-to-read visual format in an email. So I created this scenario to make it happen. I’m attaching images of everything I’ve set up.

Steps taken so far

Hi Make community :man_raising_hand:t2: I have a question and a problem that’s literally keeping me up at night. I’ve looked everywhere but I can’t find a solution.

I’m working with some modules and receiving information from a webhook, which I then split to format and transform. The issue is that I’m using an Iterator and an Aggregator, but the information isn’t being “joined”—I’m receiving and outputting, in this case, 6 operations (one for each product), and I need to consolidate them into a single one. I’ve tried everything, but I just can’t find what’s wrong.

I’d be super grateful if anyone could help me out. Thank you so much :man_raising_hand:t2:

Screenshots: scenario setup, module configuration, errors

blueprint-2.json (71.3 KB)










Hi @Andres_Marciales
The Match Pattern module seems to return six bundles that you need to aggregate. Replace the iterator source module with the match pattern module.

1 Like

Hi ponvaskon. Thanks for getting back to me. I did what you suggested and tried selecting “value” from the iterator, the numbers from parser 5, and a few other ways, but I’m still getting the same 6 operations :face_with_peeking_eye:

@Andres_Marciales, can you please clarify why you use the iterator?

1 Like

Very good question. I have no idea. I completed this entire flow step by step following Google AI Studio instructions. The idea is to take the data sent by the form, transform it, and then add it to HTML so it looks much better in the email.

So 6 items/products come in, but the text is all stuck together and the price values have no formatting. What make should theoretically do is organize them and format the prices so the information is more understandable. But for now, it formats correctly but if there are 6 products, it performs 6 operations and sends 6 emails :face_holding_back_tears: The email doesn’t come through properly because although I have the images on a server, for some reason they’re not displaying. I’m going to attach what Google AI told me and also images of how the email arrives without formatting and with formatting :man_raising_hand:t2:

This is what the AI told me when I asked:

"In your case:

  1. Module 8 (Text Parser - Split Products): This module takes the rawCartString and splits it. Its output is (ideally, and as it appears in your Module 8 capture) ONE operation containing multiple bundles (6 bundles, one for each product line item:…).
  • Bundle 1: “item: prodA, title: TitleA, …”
  • Bundle 2: “item: prodB, title: TitleB, …”
  • … and so on up to Bundle 6.
  1. Iterator (Module 4):
  • Input: Receives those 6 bundles from Module 8.
  • Action: Takes Bundle 1 (“item: prodA…”) and passes it to the next stage (Module 5) as its “Operation 1”. Then takes Bundle 2 (“item: prodB…”) and passes it as its “Operation 2”, and so on.
  • Output: Generates 6 Operations. Each operation contains the data for a single product.
  1. Modules within the Iterator branch (Module 5 - Text Parser, Module 6 - Compose a string):
  • These modules run 6 times, once for each “Operation” sent by the Iterator.

  • Module 5 extracts the product details from that specific operation.

  • Module 6 creates the HTML for that specific product. Why do we need the Iterator if it seems to “cause” the 6 operations? Because Modules 5 (Text Parser for details) and 6 (Compose a string for HTML of one product) are designed to work with information from ONE SINGLE product at a time.

  • If you passed the 6 bundles directly to Module 5 without an Iterator, Module 5 would probably only process the first bundle or give an error because it wouldn’t know how to handle multiple products at once with a regex designed for one.

  • The same goes for Module 6: it needs the details of ONE product to create its HTML."


@Andres_Marciales, please send the blueprint of your scenario and an example of the Cart text.

1 Like

Thank you so much for your attention, ponvaskon. Here’s the blueprint I was working on and a sample of what the webhook receives :man_raising_hand:t2:
blueprint (1).json (71.2 KB)
Cart.docx (3.8 KB)

@Andres_Marciales,please find the updated blueprint attached.

  1. As I understand, you want to combine the cart items into an HTML string. The better approach for this is to use the text aggregator.
  2. You had the IF function in the HTML that used the iterator’s bundles, but it’s irrelevant because you’re getting the same total number of bundles and bundle order position (I removed it).
  3. You should review the HTML code of the cart items because they are not correctly formatted.
    blueprint (2).json (70.4 KB)
1 Like

You have no idea how grateful I am. I had honestly tried everything. I had no idea I needed to remove the iterator. I even asked different AIs what it was for, and I thought that was the problem—but they kept telling me it was important. I looked into iterators and aggregators, but none of it seemed to apply to my case.

Thank you so much for your help, ponvaskon

My name is Andrés Marciales, and I’m a web designer and developer using Framer :man_raising_hand:t2: If you ever need help or a website, just let me know :flexed_biceps:t2:

1 Like

@Andres_Marciales you are welcome! I’m glad I could help.

1 Like