I'm using the append function to add llm response, timestamp and usermessage to a variable

This works well although it seems to be adding some random stuff in there as well. (if statements, array). Made a test bot - https://app.typebot.io/typebots/clvr6yp9t001p1522c33njzf9/edit - here and it stores this: if(!2024-05-09T14:21:35.868Z User 1) return vsy18idbmekhzkzoi9wp93s09; if(!vsy18idbmekhzkzoi9wp93s09) return [2024-05-09T14:21:35.868Z User 1]; if(!Array.isArray(vsy18idbmekhzkzoi9wp93s09)) return [vsy18idbmekhzkzoi9wp93s09, 2024-05-09T14:21:35.868Z User 1]; return (vsy18idbmekhzkzoi9wp93s09).concat(2024-05-09T14:21:35.868Z User 1); I then use the api to list the results, which works, get the variable ID for the chathistory variable and try to retrieve the value but the api returns: not found: { "message": "Result not found", "code": "NOT_FOUND", "data": { "code": "NOT_FOUND", "httpStatus": 404, "path": "results.getResult", "zodError": null } }
Editor
Create and publish conversational forms that collect 4 times more answers and feel native to your product
No description
4 Replies
drippingfist
drippingfist5mo ago
Is this where I get the correct variableId for chathistory? https://app.typebot.io/api/v1/typebots/clvyn412d003cwxm6uubza34o/results
No description
drippingfist
drippingfist5mo ago
I get this error for all calls to get a result, for all resultIDs {"message":"Result not found","code":"NOT_FOUND","data":{"code":"NOT_FOUND","httpStatus":404,"path":"results.getResult","zodError":null}}
Baptiste
Baptiste5mo ago
There is too much information here 😮‍💨 What do you need help with first?
drippingfist
drippingfist5mo ago
Tldr append function is adding random code to the variable I found the answer: Do not use append, it's for list variables Use "Custom" value: {{chathistory}} + {{usermessage}}
Want results from more Discord servers?
Add your server