Browser-side Integration - helixml/chat-widget

To integrate the HelixML chat widget on any webpage, you can use a <script> tag to embed the widget. Here are the steps to do so:

  1. Add the following script tag to the HTML file where you want to embed the chat widget:
<script src="https://unpkg.com/@helixml/chat-widget"></script>

This will load the HelixML chat widget library.

  1. Initialize the chat widget by adding the following script tag:
<script>
const helixmlChatWidget = new HelixMLChatWidget.ChatWidget();
helixmlChatWidget.render();
</script>

This will create a new instance of the chat widget and render it on the page.

You can customize the chat widget by passing options to the ChatWidget constructor. Here are some examples:

Example 1: Customize the chat widget with a title and a subtitle

Add the following script tag to customize the chat widget with a title and a subtitle:

<script>
const helixmlChatWidget = new HelixMLChatWidget.ChatWidget({
title: 'HelixML Chat Widget',
subtitle: 'A sample chat widget using HelixML',
});
helixmlChatWidget.render();
</script>

This will create a new instance of the chat widget with a title and a subtitle.

Example 2: Customize the chat widget with a different theme

Add the following script tag to customize the chat widget with a different theme:

<script>
const helixmlChatWidget = new HelixMLChatWidget.ChatWidget({
theme: 'dark',
});
helixmlChatWidget.render();
</script>

This will create a new instance of the chat widget with a dark theme.

Example 3: Customize the chat widget with a different language

Add the following script tag to customize the chat widget with a different language:

<script>
const helixmlChatWidget = new HelixMLChatWidget.ChatWidget({
language: 'es',
});
helixmlChatWidget.render();
</script>

This will create a new instance of the chat widget with Spanish as the language.

For more information, you can refer to the HelixML chat widget documentation: https://helixml.github.io/chat-widget/

The HelixML chat widget is built using React, TypeScript, Vite, @vitejs/plugin-react, OpenAPI, OpenAPI Client, Axios, Styled-Components, and React Router Dom. It is designed to be customizable and extensible. You can use it as a starting point to build your own chat widget or integrate it with your existing web application.

For more information on the technologies used in the HelixML chat widget, you can refer to the following resources:

If you want to use a different messaging client, you can consider the following alternatives:

For more information on these alternatives, you can refer to the following resources:

These alternatives use different technologies and have different features, so you can choose the one that best fits your needs.