Skip to content

Publishing knowledge models as widgets

You can publish a knowledge model as a widget that can be embedded into an external website. When you publish a model, a copyable code snippet is generated for insertion into the external site’s code. Site users can interact with the chat functionality without access to source documents and references.

To publish a knowledge model as a widget:

  1. In Constructor Platform, go to Knowledge models > My models.
  2. In the list of your knowledge models, click the required model to open it.
  3. Click the publish tab .

  1. Switch to the Widget tab and enable the Publish model via widget toggle.
  2. Configure the model chat settings:
  • LLM engine
  • Sessions per minute
  • Messages per minute per session
  1. Click Publish. The HTML code field will contain a code that you need to copy and paste into your website code just before the closing </body> tag to add the knowledge model chat widget.

See also Using knowledge models for website AI assistants.