I have in one scenario a module that gets this output multiple times, and I want allthe outputs sorted into one string, what is the best solution?
Iterator module to iterate the array then use text aggregator module
Works, but I have another problem, and I have got this before.
the description part of the JSON is not usable because of its length, what can I do about it?
There are few options to handle this kind of issue.
Sharing 2 of them:
-
Use substring function
-
Ask gpt to rephrase with max number of characters
Welcome to the Make community!
That could truncate text in the middle of words. You might want to wrap it with another function to remove the last word from the result, truncated or not.
To trim excess words until it is below the character limit, you can do this:
{{ replace(substring(1.description; 0; 120); /\s.*?$/; emptystring) }}
See Telegram to mastodon text limit - #3 by samliew for more information.
samliew – request private consultation
Join the unofficial Make Discord server to chat with other makers!
what is the max amount of characters?
It depends on the external service you are using. Please refer to the external service’s Developer API Reference/Documentation for the max character count for that field.
samliew – request private consultation
Join the unofficial Make Discord server to chat with other makers!