Share feedback, ideas and get community help

F
M
a
g
E

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
}
}
Attachment
image.png
d
B
6 comments
Is this where I get the correct variableId for chathistory? https://app.typebot.io/api/v1/typebots/clvyn412d003cwxm6uubza34o/results
Attachment
image.png
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}}
There is too much information here ๐Ÿ˜ฎโ€๐Ÿ’จ
What do you need help with first?
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}}
Add a reply
Sign up and join the conversation on Discord
Join