NaviGator AI

Website widget

Embed a NaviGator AI Assistant on an approved public website

The NaviGator AI Assistant widget places a NaviGator AI Assistant experience on a public website managed by the customer or their department.

The widget cannot communicate with authenticated websites. Work with the UFIT Artificial Intelligence and Platform Engineering team (UFIT AIPE) and your web team before publishing it. If you do not yet have an Assistant engagement, start with Getting Started.

Before deployment

You need:

  • A public website approved for the widget
  • An approved NaviGator AI Assistant that uses Open-only sources
  • Deployment values supplied by UFIT AIPE
  • A department web-team contact who can update and test the public website
  • The widget-embed-24-12-17 account added as a Curator to the customer's NaviGator AI Assistant group

The widget-embed-24-12-17 Curator is required so that private NaviGator AI Assistants can send valid responses to the widget.

Deployment workflow

  1. UFIT AIPE configures the NaviGator AI Assistant and supplies the approved deployment values.
  2. The NaviGator AI Assistant customer validates the source content and expected answers.
  3. The department's web team adds the supplied script to the approved location in the public website's code.
  4. The customer and web team verify the deployment against the success criteria below before release.

Welcome message

The widget shows the NaviGator AI Assistant's Description as its first message when a new widget session starts. The Description is set in Curator Panel > Assistants > Edit Assistant. The documented format is:

Hi! I'm NaviGator AI, your AI Assistant for <group name>. How can I help you?

Replace <group name> with the name of the Assistant group.

Example embed

Replace the example IDs. Use your Assistant's ID for personaId and the analytics ID approved for your website.

The embed has two parts. Add this container as the last child of the page's <body> element:

<div id="navigator-assistant"></div>

Add the script as a child of the page's <head> element. Both placements are recommended but not required.

<script
  defer
  src="https://assets.ai.it.ufl.edu/navigator-assistant.js"
  personaId="2"
  fullscreen="true"
  fullscreen-coverage="65"
  analyticsId="G-PPPH9X8KSY"
  hide-dropdown-citations="false"
></script>
AttributeMeaning
personaIdThe supplied identifier for the configured NaviGator AI Assistant. It is the number at the end of the Assistant's edit page URL in the curator interface. For example, https://assistant.ai.it.ufl.edu/admin/assistants/2 has an ID of 2.
fullscreenOptional. Defaults to false when omitted. When true, users can expand the widget to cover most of the web page's height and width.
fullscreen-coverageOptional. Used only when fullscreen is true. An integer from 50 to 95 inclusive that sets the percentage of the web page covered by the expanded widget.
analyticsIdThe supplied analytics configuration identifier. Confirm analytics scope and behavior with UFIT AIPE rather than inferring them from this placeholder.
hide-dropdown-citationsOptional. Set to true to hide the source dropdown for each answer. Omit it or use false to keep the dropdown available.

Adjust or omit optional attributes to suit your website.

Verify the deployment

Before release, confirm that:

  • The widget displays on the approved public page using the values supplied by UFIT AIPE.
  • Representative Open-data questions produce the expected answers with relevant citations.
  • The department web team completes its required presentation and accessibility checks.
  • Any required analytics configuration matches the deployment values supplied by UFIT AIPE.

Only publish the widget on approved public websites. The NaviGator AI Assistant and its sources currently permit Open data only.

On this page