Bold360 and BoldChat Developer Center

Controlling widgets with Developer Tools

Follow these steps to interactively control a widget in a web page.

Sometimes it is useful to be able to send code to a Bold360 AIweb widget interactively. This technique allows you to test code quickly before adding code to a web page--thus avoiding the need to repeatedly save and refresh a page and RESET the widget.

To issue interactive commands to a widget, follow these steps:

  1. Open a web page that displays a Bold360 AI widget.
  2. Open the Developer Tools in the browser.
  3. In the Console tab, type code as needed to cause the widget to perform methods. For example, try any of the following:
    nanorep.floatingWidget.collapse()
    nanorep.floatingWidget.expand()
    nanorep.floatingWidget.ask('RESET')
    nanorep.floatingWidget.ask('test')
    nanorep.floatingWidget.getLastQuery().then(alert);