rough-knife-78536
05/31/2024, 12:47 PMdict_test = {'foo': 1, 'bar': 2}
When publishing, the bot recognizes it and works as expected.
dict_test = {'foo': 1, 'bar': 2, 'new': 3}
However, if I update or add other elements inside the variable and publish it, the bot doesn't recognize this update in production.
Does anyone know why this happens?square-toddler-30705
05/31/2024, 2:32 PMaloof-traffic-22451
05/31/2024, 5:28 PM{
"foo": 1,
"bar": 2
}
and then add another property in the execute card? If so, are you using the bot with webchat?quick-musician-29561
06/01/2024, 4:24 PMquick-musician-29561
06/01/2024, 4:24 PMquick-musician-29561
06/01/2024, 4:26 PMjs
workflow.dict_test = {'foo': 1, 'bar': 2, 'new': 3}
https://cdn.discordapp.com/attachments/1246082728089092128/1246500070774280342/image.png?ex=665c9d27&is=665b4ba7&hm=33e2eb2e872bc24bc39ed987b6db30b39ae70ce2a3e70a38b4d59e67ee4469f0&quick-musician-29561
06/01/2024, 4:54 PMquick-musician-29561
06/01/2024, 4:56 PMjs
workflow.response = response.data.data[0].content[0].text.value
workflow.q_and_a_object = {'question': event.preview, 'answer': workflow.response, 'addAnotherValue': "test value"}
rough-knife-78536
06/03/2024, 11:54 AMrough-knife-78536
06/03/2024, 7:45 PMquick-musician-29561
06/04/2024, 4:27 AMsquare-toddler-30705
06/04/2024, 6:37 AMquick-musician-29561
06/04/2024, 7:11 AMquick-musician-29561
06/04/2024, 7:19 AMquick-musician-29561
06/04/2024, 7:21 AMsquare-toddler-30705
06/04/2024, 12:52 PMrough-knife-78536
06/11/2024, 2:04 PMbot.dict_test = {'foo': 1, 'bar': 2}
, published it and tested it (image_1).
- I added a new key ('new_': 3
) to the variable dict_test by UI (image_2)
The variable has not been updated! I also sent this variable to whatsapp and received {'foo': 1, 'bar': 2}
in both cases.
https://cdn.discordapp.com/attachments/1246082728089092128/1250088156133462086/image_1.png?ex=6669aad1&is=66685951&hm=6adcbbf713ca3d04d1b67bd07da7ee89f5f5fd60f8cb7db164432ee923201b62&
https://cdn.discordapp.com/attachments/1246082728089092128/1250088156372406323/image_2.png?ex=6669aad1&is=66685951&hm=7a482fce72ae0af1e8d8d390c41db72a8db21c9c2a43613a9a517ac18edf418a&