Widget State unreliably passed to the model

Widget State Unreliably Passed to the Model

Issue Description

When using setWidgetState with information about what the user is looking at, this information seems to be very unreliably visible by the model. Even by giving very small pieces of information and resetting the conversation, the model seems (most of the time) to be totally unaware of what is passed.

Steps to Reproduce

  • Start from a blank conversation, trigger your widget
  • Using setWidgetState to pass some contextual information

Expected Behavior

The model should reliably receive and acknowledge the widget state information.

Actual Behavior

The model appears unaware of the passed state information most of the time.

Evidence

See attached screenshot:

Step 1: select a first hotel offer, let the model know the user is looking at it

Step 2: ask the model what i am looking at: model can’t tell

Step 3: repeat step 1 & 2 with another offer - this times the model knows

1 Like

I noticed the same behavior - setWidgetState does not seem to have the expected injection in the model context window. Do you confirm this is indeed injected (docs)?