Share feedback, ideas and get community help

Updated 5 days ago

openai - assistant function - setvariable error

I created a Typebot (https://typebot.co/primebot) that works perfectly in the test environment. However, when I access it through the URL, the JavaScript setVariable commands don't work after the OpenAI assistant function returns.

I’ve tried various solutions, but I suspect it’s an environment issue.

Have you encountered this problem before?

I found a related topic (https://community.typebot.io/openai-function-in-assistant-does-not-collect-02-parameters-DWk69mNZ8GYk) describing the same issue. The key difference is that my Typebot works fine in the test environment and on WhatsApp, but not via the link (https://typebot.co/primebot).
M
D
B
15 comments
I've tried and it work and in a step has replied I'm English and not in Brazilian.
Hello friend, I made some changes to help better with the diagnosis...

First I left the function:
{
"name": "get_name_email",
"description": "Sends the client name and email for integration.",
"strict": true,
"parameters": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "name of client"
},
"email": {
"type": "string",
"description": "email of client"
}
},
"required": [
"name",
"email"
],
"additionalProperties": false
}
}
Can you test again please, you will see that the bot always repeats the same message, and that is the error I am facing...
in the test environment it works normally
In the next print I will send the same bot working normally in the test environment
in the test environment and in the whatsapp test it works normally..
Attachment
image.png
"400 Can't add messages to thread_t8KyNk7W6D0gpVjobdHvDrZC while a run run_9hhVknMX8lokWQgcs8o4WUxK is active."
5:{"threadId":"thread_t8KyNk7W6D0gpVjobdHvDrZC","messageId":"msg_cWxb9qj4t9vVCxa1FcedZyV2"}
3:"\nInvalid prisma.setVariableHistoryItem.createMany() invocation:\n\n{\n data: {\n 0: {\n resultId: "fciduu4frp8s2cos0mjyd159",\n index: 2,\n blockId: "vagvtddqccum6fv4m0yzeesx",\n variableId: "vurplbjzr4dp2101rvdjua02s",\n value: "david chio"\n },\n+ resultId: String\n },\n skipDuplicates: true\n}\n\nArgument resultId is missing."
Argument resultId is missing."
Can you provide a typebot reproduction? Either json file or share link
https://typebot.co/primebot This is the link for you to reproduce the problem
Did I get it right?
I just tried, it works?
This printout worked, but if you type NAME and EMAIL you will see that the conversation will freeze!

The problem is after typing the data, when the "Assistant ask" call function is invoked and when I use the setVariable method (as shown in the printout below)
and this problem only happens when I use this link that you entered.
through the tester within the platform it works normally.
I just integrated the Evolution API and it worked normal, I believe it's only a problem in the web version.
Ok I'm trying to reproduce
Add a reply
Sign up and join the conversation on Discord