Find the answer you are looking for

Learn the Virtual Assistant implementation process in Liferay

Integrating the Virtual Assistant Script in Liferay ensures that the Assistant’s window displays correctly during every page change within the application. Due to Liferay's SPA (Single Page Application) navigation, the Assistant’s window might not load properly, leading to its absence in some cases.

➡ Find below the steps for implementation:

Key consideration: Defining aivo within window.Liferay.aivo is essential to manage the behavior of the Assistant’s window. This ensures the Assistant remains available during navigation, without losing context or duplicating scripts.

1) Customize Script Variables

  • Update the variable TOKEN with the token from your account.
  • Insert your custom styles in the designated variable to style the Assistant.
  • Provide the appropriate CDN link for your account.

2) Configure the Script in Liferay

  • Copy and paste the Script to make it globally available across the site. To do this, include it in the Liferay theme files.

➡Download the example Script here.

✅Benefits of Implementation:

  1. Dynamic and Asynchronous Loading: The script loads only when necessary and asynchronously, preventing duplication and ensuring the Assistant’s window appears automatically when users access the site for the first time.
  2. SPA Navigation Support: The Virtual Assistant window will display automatically after each page change, ensuring its consistent availability throughout the navigation process.
  3. Customizable Styles: Using the shadowRoot, you can apply styles to the Assistant’s elements without causing conflicts.
  4. Authenticated User Management: If needed, the Assistant’s window can be automatically hidden in restricted areas where the user is already authenticated.

✏ Note: For technical support regarding implementation, style customization, and configuring experiences for authenticated users, contact us via our Aivo Support Center.

This website stores cookies on your computer. These cookies are used to collect information about how you interact with our website and allow us to remember you. We use this information in order to improve and customize your browsing experience and for analytics and metrics about our visitors both on this website and other media. To find out more about the cookies we use, see our Privacy Policy.

If you decline, your information won’t be tracked when you visit this website. A single cookie will be used in your browser to remember your preference not to be tracked.