Share feedback, ideas and get community help

Updated 3 months ago

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:
Plain Text
{
  "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
B
M
3 comments
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}})=}}
Will try, thanks!
Add a reply
Sign up and join the conversation on Discord