I am facing an issue while working with the Set Variable and Webhook modules in Make.com, and I need some guidance.
Here’s the scenario:
I have a string like this: "ORD0001, ORD0041".
I’m trying to split this string into an array of individual order numbers (["ORD0001", "ORD0041"]) using the Set Variable module with the following expression:
split(string; “,”)
However, the output I’m receiving in the “OrderArray” variable is not what I expect. Instead of the array I need ([“ORD0001”, “ORD0041”]), I am getting this:
[
“ORD0001”,
“ORD0041”
]
It seems that the output is still a list of strings and not an array as expected. I am using this data in a Webhook to send the array to Voiceflow. However, Voiceflow is not handling the data correctly because it’s not formatted as an array.
Questions:
What is the correct way to ensure that the result from split is properly formatted as an array of order numbers?
How can I send the array from Make.com to a Webhook so that Voiceflow can process each order number correctly as a button?
I would really appreciate any help or advice on how to fix this issue.