You can control your published Usetiful assistants using the following JavaScript functions. These are available on any page where the Usetiful script is installed.


window.USETIFUL.assistant.start(assistantID)

  • Starts a specific published assistant based on its ID.
  • The assistantID can be found in the assistant editor URL, for example:
    https://www.usetiful.com/assistant/edit/01FTGJSQZQD5M0QQ34QTYE1276
  • When called correctly, the assistant will launch immediately on the current page, regardless of its targeting settings.
  • window.USETIFUL.assistant.start("01FTGJSQZQD5M0QQ34QTYE1276");

window.USETIFUL.assistant.close()

  • Closes the currently active assistant.