I’m working on a project and I’m in the “dip toe in the water” try to figure out the development software stages. Forgive me if this is a really easy fix that I don’t see but I’m at a loss. I want to take the data from the API I’ve got, which includes investment data on 10 companies, and send it to chat gpt to analyse. The files go data>results> then 10 files> each with xyz info. All well and good but, by the time I go to select the variables within the chat gpt prompt, it only goes data>results> xyz info (on only one company), as you can see in the images, the output for the http module is solid, but the chat gpt module (and any other module ive tried) cant receive any more info than the one company: one data set that for some reason exists within the number 10 folder as i checked. How do I make the variables-selecting menu able to recognise the other 9 folders? In the first image, it is of course the items that I am able to select (ignore the bottom right, i was beyond lost), and the other two images are the output of the previous module (the data that is supposed to be there) with 1 out of the 10 files expanded (so you can see that the first image represents 1 file’s data). I’ve tried exploring JSON Parsors and Iterators but for the life of me can’t figure it out. Help!
Why are my available items/variables not representative of the entire output of the previous module?
Welcome to the Make community!
When you see ARRAY, think ITERATOR.
Then,
Aggregators
Every result (item/record) from 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.
There are other types of aggregator modules, click the below links to find out more:
- Array aggregator
- Text aggregator
- Numeric aggregator
- Table aggregator
- JSON aggregator
- CSV aggregator
- Archive (ZIP) aggregator
- other app-specific aggregators
Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —
Getting Started
- Help Centre | Tutorials – Make “Manual”
- Make Academy – Basics 101: Learn Make and get certified
Help Centre Basics
- Mapping – What is mapping? What can I map?
- Mapping with arrays – How to map items in an array
- Aggregate an array for mapping complex fields
- Date Format: tokens for
parseDate
| tokens forformatDate
- HTTP modules – Make a request, Get (download) a file
- Webhooks – Error Handling, Responding to webhooks
Articles & Videos
- Router Magic Formula - YouTube
- Error Handlers in Make - YouTube playlist
- Getting started with OpenAI - How to setup and use OpenAI (ChatGPT) in Make
- How to use Regex in Make - How to use pattern matching to extract the text you want
- Webhooks – Make Academy – tutorial on how to use Webhooks
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.