watson-developer-cloud / node-red-node-watson

A collection of nodes for the IBM Watson services
Apache License 2.0
82 stars 86 forks source link

Assistant V2 node deletes the Assistant context variables #464

Closed filippotramonto closed 4 years ago

filippotramonto commented 4 years ago

The Assistant V2 node deletes the context variables previously defined in Watson Assistant. For example if a context variable is defined in the Welcome node, at the start of of the chatbot application, the variable is valued. Then at the first user input another Assistant node is triggered and there the context variable should be still exists, instead the variable is not more present, it was deleted. On the contrary the V1 Assistant node works correctly and the context variables persist.

chughts commented 4 years ago

If you are sending in the session id, then the context variables will be preserved.

filippotramonto commented 4 years ago

Ok, thanks. This behaviour on context variables depending on the presence of the seesion_id parameter is not explained in the info box.