Text aggregation of multiple text strings

Hi there!

So, I aim to send a Text Message on Telegram daily with 5 titles of articles with links requested from JSON API. I wish it would be that easy, as I have tried to show here on the screenshot with green arrows :smiley:

So making an HTTP request to JSON API with 3 columns: title, link, published_at, parsing this JSON, array aggregating, filtering for records where published_at is later or equal to today and then collecting 5 strings with different articles to compose a final string with 5 articles.

I was thinking about composing 5 strings and then aggregating them into one string so it would have the structure below, but it’s not working because we can’t connect more than one step to compose a string module.

Hey! Check out new articles:
* {title1} – {link1}
* {title2} – {link2}
* {title3} – {link3}
* {title4} – {link4}
* {title5} – {link5}

Solutions from similar topics didn’t work for me :frowning:

You shouldn’t be using routers if you need all the data from the different paths.

Try using a repeater with an aggregator instead.

Or your initial approach is wrong, put your compose string module before your array aggregator, and change it to a text aggregator. You might not even need a Compose a string module if you can directly aggragate to the string you want.

2 Likes

Hi @samliew, I’m afraid it doesn’t work for me – it generates messages individually, while I want to create one message containing 5 different titles and links :frowning:

Maybe it’s because of the form and how bundles are parsed.
It goes like this:




It would help if you can provide an output bundle of the “links requested from JSON API”.

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of the module that outputs the “links”, save the bundle contents in your text editor as a bundle.json file, and upload it here into this discussion thread.
Screenshot_2023-10-06_141025

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

This will allow others to better assist you. Thanks!

2 Likes

Sure, here we go @samliew
output_bundles.json (6.3 KB)

Replace module [64] in this screenshot with your module that gave you that output bundle you provided (links requested from JSON API).

Filter

Screenshot_2023-12-18_211248

Text Aggregator

Output

3 Likes

Oh gosh, @samliew you are the best! :heart_eyes: So simple, it’s working, you’ve helped me so much! :heart:

2 Likes

No problem, glad I could help!

Did you know, we joined this forum around the same time last year? :slight_smile:

I just wanted to share some links and guides that I found useful when I was learning Make, that you can also use to learn more on how to use the Make platform, apps, and app modules —

General

Help Center Basics

Articles & Videos

3 Likes

Oh, that’s so fun! :smiley: Thanks for the guides, saving them in my bookmarks! :heart:

2 Likes