Grouping input from Excel in batches of 10 (Aggregator Question?)

Hi there,

after countless Yt videos und Tut’s for 1,5. days i’ve been trying to solve this without luck.
It’s actually simple:

  1. I have an Excel sheet with several columns in each row. I retrieve this with “list worksheet rows” and have 100 rows. all good.
  2. I would now want batches of 10 rows (with all column-content individually mapped) to than hand over to openAI
  3. openAi to complete a prompt and write the results for each 10 rows of the batch into antoher excel (add row)

I have tryed creating and parsing JSON, iterator and aggregator as well as data storage. But i can not for the live of me, get make.com to create batches of 10 rows - so 100 rows = 10 batches each with 10 rows each containing multiple columns of content!

I’d be gratefull for an example of how this works and is set up the right way. or a link to a YT film where this is done.

What you are asking for is also known as “chunking”.

See A Better Solution for "How to group bundles in X amount of bundles"

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

@samliew Ah - this indeed sounds like one step towards my solution! Your tutorial shines a light on the chunking with a repeater. But i am missing how to set this up from step1 to finish … so can’t follow completely. Sorry - i am a complete novice in this, but trying … :slight_smile:

Would you be able to help me with the set up including the excel output to iterator to repeater and to aggregator over to openAi and saving into excel again? i can not seem to be able to map this correctly and get it to work …
The chunking is one of the biggest issues in this i have, but also properly mapping all data / content

2 Likes

If you need further assistance, please try to implement the solution first.

Then, to allow us to assist you with your scenario, please provide the following:

1. Relevant Screenshots

Please share screenshots of your scenario, any error messages, relevant module fields, and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:

2. Scenario Blueprint

Please export the scenario blueprint file to allow others to view the mapped variables in the module fields. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

3. Output Bundles of Modules

Please provide the output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

A. Upload as Text File

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

This is so kind of you! Thank you so much.

In fact … your tutorial got me thinkng how you calculation looks completely different then mine in the “group by” field … as a result i noted that i was not “clicking together” the math operators in make, but writing the code into the field. As a result it was not parsed correctly. If I “click together” from the context window in make, my scenario works!!

To find this out has costed me 2 days … but in the end your screen shot brought me to the solution! Maybe not as intended: But a solution after all.

:pray:

No problem, glad I could help!

1. If anyone has a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!