Hello Cognigy,
we have another situation in our V3 project.
On the Webchat start we are sending two Data Messages to Cognigy.
The Webchat buffers them and then sends both of them at once.
In the Flow there is a Code Node that handles the data and writes it to the Context.
It looks like, that two messages are arriving at the "same time", so that the Code Node is working on the same old context for these two messages.
Can it be or something else if off?
Like this:
Webchat:
Flow:
DefaultContext:
{ "A": "",
"B":""}
CodeNode:
If (ci.data.A) cc.A = ci.data.A
if (ci.data.B) cc.B = ci.data.B
Result in the Webchat (there is a Say node, saying the context):
A = "A"
B=""
A=""
B="B"
Expected:
A = "A"
B= ""
A="A"
B="B"
Thanks,
Anton
Comments
4 comments