Log in
Log into community
Share feedback, ideas and get community help
View all posts
Related posts
Did this answer your question?
๐
๐
๐
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
Append JSON to variable
Append JSON to variable
Inactive
0
Follow
M
Mateus Z3
8 months ago
ยท
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
Copy
{ "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
Share
Open in Discord
B
Baptiste
8 months 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}})=}}
M
Mateus Z3
8 months ago
Will try, thanks!
M
Mateus Z3
8 months ago
Worked!
Add a reply
Sign up and join the conversation on Discord
Join on Discord