Append JSON to variable

How do I append values to a variable without it converting to string? I need to have a list of json, I'm sending this to my endpoint:
{
"input": {
"messages": {{Chat history}}
}
}
{
"input": {
"messages": {{Chat history}}
}
}
tried to use the "custom" option for the variables but I still get a list of strings in the Chat history variable
2 Replies
Baptiste
Baptiste2mo ago
Variables in Typebot are saved as string or string[] (list of strings). So your JSON variable will be saved as a string but you could as a workaround parse it everything you use it {{=JSON.parse({{Chat history}})=}}
Mateus Z3
Mateus Z32mo ago
Will try, thanks! Worked!