Methods
Frontnow Advisor provides a range of actions that allow you to customize the functionality of the widget and provide personalized recommendations and guidance to your website visitors.
Last updated
Was this helpful?
Frontnow Advisor provides a range of actions that allow you to customize the functionality of the widget and provide personalized recommendations and guidance to your website visitors.
Last updated
Was this helpful?
isReady()
Checks if the Frontnow Advisor is ready.
Returns:
boolean
- true
if the advisor is ready, otherwise false
.
Example usage:
open()
Opens the Frontnow Advisor widget.
Example usage:
close()
Closes the Frontnow Advisor widget.
Example usage:
showEoC()
Opens the Frontnow "End of Conversation" widget.
Example usage:
closeEoC()
Closes the Frontnow "End of Conversation" widget.
Example usage:
showLauncher()
Shows the Frontnow Advisor launcher button.
Example usage:
hideLauncher()
Hides the Frontnow Advisor launcher button.
Example usage:
sendMessage(message)
Sends a message to the Frontnow Advisor.
Parameters:
message
(string
) - The message to send to the advisor.
Example usage:
stopMessage()
Stops the current message loading in the Frontnow Advisor.
Example usage:
updateTargetElement(
newTargetElement)
Updates the target element for the Frontnow Advisor. This method is only applicable when using custom targeting.
Parameters:
newTargetElement
(HTMLElement
): The new HTML element to target.
Disclaimer:
This method should only be used if you are implementing custom targeting for the Frontnow Advisor. Ensure that the newTargetElement
parameter is a valid HTML element.
Example usage:
Notes:
The current advisor instance will close before updating the target element.
The advisorContainer
will be removed and reinitialized to target the new element.
openNewChat()
Opens a new chat in the Frontnow Advisor.
Example usage: