Help with removing commas

I’m pretty new with Make, I have a ChatGPT module parsing text (a conversation with a chatbot). The output looks ok, but when I add the “conversation” from the ChatGPT module in the Email, it adds lots of commas. What function shall I use to remove the commas? Given that I haven’t played around with Make that long, I still have little knowledge of the functions. Seems it’s not actually in the array, as the are no commas in the array. The commas are only in the email.


Welcome to the Make community!

The Conversation variable is an array. If you do not “merge” all the items in the array, it will be automatically converted into a comma-separated text (string-type variable) so that it can be concatenated with the rest of your text.

To prevent this,

You can use the built-in function join

e.g.:

{{ join(1.conversation; newline) }}

For more information, see Mapping and Mapping with arrays below, and read up more on the function join in the Help Center.

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 —

General

Help Center Basics

Articles & Videos

samliewrequest private consultation

Join the unofficial Make Discord server to chat with other makers!

4 Likes