Demonstrating the floating widget (floatingWidget) that has already been added to this web page.
Ask, Collapse, Expand
Please click the Ask a question... button. Notice that it acts as if you typed a question, then searches the knowledge base for a matching phrasing.
In this demo code, we have created some entities, one of which is userFirstName. Please create an article in your knowledge base that contains
[[userFirstName]] in its Content, add a phrasing such as user, and publish your article. Then, enter user in
the widget, and press the Enter key on your keyboard. You should see SampleFirstName as an answer.
Focus
Notice when you focus on the expanded floatingWidget, the cursor is where the user can enter text, and when you focus away, the cursor leaves.