Basic Functions
Make sure Frase is loaded and available before using these methods.
To check if Frase is loaded, you can use this listener function:
frase.on("ready", function(){ // your code here });
Or you can check the "ready" field (boolean):
frase.ready
Show
Show the Assistant.
frase.widget.show()
Open
Show the Assistant, and trigger the right sidebar.
frase.widget.open()
Hide
Hide the Assistant. If you need your Assistant to be hidden on load, please use the Global Settings.
frase.widget.hide()
Hide Greeting
Hide Assistant greeting message.
frase.widget.hideGreeting()
Show Greeting
Show Assistant greeting message.
frase.widget.showGreeting()
Disable Live Chat Fallback
Disable option to fall back to live chat.
frase.widget.disableChatFallback()
Ask
Ask question and open Assistant to enter answer experience.
frase.widget.ask("do you offer a free trial?")