For the complete documentation index, see llms.txt. This page is also available as Markdown.

Methods

Frontnow Advise 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.

Before using these methods, ensure that Frontnow Advise has been properly initialized. For setup instructions, please refer to the Getting Started page.

isReady()

Checks if Frontnow Advise is ready.

Returns:

  • boolean - true if the advisor is ready, otherwise false.

Example usage:

if (advisor.isReady()) {
    console.log('Advisor is ready!');
}

open()

Opens Frontnow Advise widget.

Example usage:

advisor.open();

close()

Closes the Frontnow Advise 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 Frontnow Advise launcher button.

Example usage:

hideLauncher()

Hides Frontnow Advise launcher button.

Example usage:

sendMessage(message)

Sends a message to Frontnow Advise.

Parameters:

  • message (string) - The message to send to the advisor.

Example usage:

stopMessage()

Stops the current message loading in Frontnow Advise.

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:

Last updated

Was this helpful?