Hi there,
json and screenshot are attached.
I played around for hours and didnt make it. I completed all modules of the Academy.
I want the value pairs “h1” , “Headline Text” etc. for the first 1 - 5 items of the array. They should appear in a prompt ChatGPT, so that is via HTTP-request made.
Therefore I want to extract them, being modified the way that in the prompt they appear as “h1: Headline Text”.
I managed to get the values by using a map-function in an iterator. But not as a pair.
I can use join ( ) but then I get them all together with a separator. Then I dont know how to separate agein. Nothing makes sense.
Can you help and explain?
Thorsten
API-output.json (108.9 KB)
Hi @holymoly , do you want to extract all the tags from 30 arrays and turn them into bundle so that you can pass them to 30 different articles using http request ?
Hi @abhilash_naik,
I just want all headlines of the first 5 competitors to being put just into 1 prompt.
Cheers,
Thorsten
Is this scenario to dumb to ask?
Has anybody a clue?
Hello @holymoly,
I think your issue is that “headers” are also Arrays. If you want to group them to generate a text with h1:xxxxx etc, you can do the following
I simulate the output with my Parse JSON
First Iterator, you get the bundles of competitors
Then a filter lets go only the ranks up to 5
Second iterator to Iterate all Headers
And then, a Text Aggregator to group the values in headers
Here is the result
Then this result can be mapped in your last HTTP call
Here is the blueprint of the example I built:
Example4HolyMoly.json (118.2 KB)
I hope it’s what you expected
Benjamin