Hello everyone,
I am currently working on retrieving specific fields from the blueprint API call. The API call can be made using the following URL: https://eu1.make.com/api/v2/scenarios/SCENARIO_ID/blueprint. When this call is made, it returns a large amount of information from the scenario blueprint, which can be used for exporting or importing.
However, my objective is to extract only the essential items from the JSON response, and then send it to either OpenAI or Anthropic, depending on the number of tokens involved. The purpose is to generate documentation for the scenario itself or at least provide an explanation of the scenario.
I am encountering difficulties when it comes to mapping the data. Inside the âblueprint.flowâ section, there is an array of modules, and within each module, there are several collections. The only information I require is located inside the âmapperâ collection, while excluding metadata and parameters. Since blueprints can have numerous variations, it is not feasible to map each value individually or solely focus on the âmapperâ collection (refer to the screenshot).
Therefore, I am seeking guidance on how to transform the data into my own JSON format, where I can exclude all the âunnecessaryâ fields. This is necessary because the extensive amount of data either consumes all available tokens or confuses the AI due to its complexity.
Any help would be appriciated