chat-ai-widget

Build AI Chatbot in minutes with Sendbird Chatbot Widget.

MIT License

Downloads
5.5K
Stars
28
Committers
9

Bot releases are hidden (Show)

chat-ai-widget - v1.8.2

Published by bang9 about 1 month ago

[1.8.2] (Sep 19, 2024)

Fix:

  • Removed CSS styles that could potentially affect the client's website
chat-ai-widget - v1.8.1

Published by bang9 about 1 month ago

[1.8.1] (Sep 12, 2024)

Fix:

  • Fixed that prevent zoom when focusing on input in iOS mobile
chat-ai-widget - v1.8.0

Published by bang9 about 1 month ago

[1.8.0] (Sep 12, 2024)

Feat:

  • File Message Support: File attachment in messages is now supported. Of course, drag-and-drop and copy-paste actions are also supported.
  • Locale Support: Added a locale option to support multiple languages for welcome messages and suggested replies. If not specified, the browser's default language will be used. (support for multilingual settings will be available in the dashboard).
  • Carousel Adapter for Function Call: Introduced an adapter to convert function call responses into a carousel UI. Example usage is as follows:
    interface MealFunctionCallResponse {
      meals: { strYoutube: string; strMeal: string; strMealThumb: string }[];
    }
    
    function isMealsResponse(response: unknown): response is MealFunctionCallResponse {
      return !!response && typeof response === 'object' && 'meals' in response && Array.isArray(response.meals);
    }
    
    const App = () => {
      return (
        <ChatAiWidget
          tools={{
            functionCall: {
              carouselAdapter({ response }) {
                if (isMealsResponse(response)) {
                  return response.meals.map((it) => ({
                    title: it.strMeal, // Carousel card title
                    featured_image: it.strMealThumb, // Carousel card image
                    url: it.strYoutube, // URL to open when the carousel card is clicked
                  }));
                }
    
                return [];
              },
            },
          }}
        />
      );
    };
    
chat-ai-widget - v1.7.9 Latest Release

Published by bang9 about 2 months ago

[1.7.9] (Aug 22, 2024)

Feat:

  • Added callbacks.onWidgetSettingFailure in Constant for handling widget setting failure
  • Added error page to widget playground

Fix:

  • Fixed a broken message data content UI in dark theme
chat-ai-widget - v1.7.8

Published by liamcho 2 months ago

[1.7.8] (Aug 16, 2024)

Fix:

  • Fixed a bug where session not being reset on unauthorized error during channel fetch
  • Fixed a bug where browser cached messages are not being cleared on refreshing the channel

Chore:

  • Added enableWidgetExpandButton in Constant. Refer to Available props section in README.md file for details
  • WidgetWindowFullScreen no longer disconnects while network is connected
  • Texts in user message that start with tel:, mailto:, or sms: are now being considered as url
chat-ai-widget - [Deprecated] [v1.7.6]

Published by bang9 2 months ago

Deprecated version

chat-ai-widget - v1.7.7

Published by bang9 2 months ago

[1.7.7] (Aug 7, 2024)

Fix:

  • Added a root element to the full-screen component for the modal to avoid crashes when clicking feedback.
  • Fixed the carousel index calculation.

Chore:

  • Updated disconnect WS timeout to 1 minute.
  • Updated Sendbird banner link attributes.
chat-ai-widget - v1.7.5

Published by bang9 3 months ago

[1.7.5] (Aug 1, 2024)

Fix:

  • Fixed a bug where directly managing the widget open state caused a disconnection after 3 minutes and prevented reconnection.
chat-ai-widget - v1.7.4

Published by bang9 3 months ago

[1.7.4] (July 30, 2024)

Fix:

  • Fixed a UX issue where the feedback modal was displaying unintended behavior
  • Fixed a bug with URL handling in Markdown syntax
  • Fixed a bug where the self-service widget was broken in Angular.js
chat-ai-widget - v1.7.3

Published by liamcho 3 months ago

[1.7.3] (July 09, 2024)

Fix:

  • Fixed a broken backward compatibility of FormMessage introduced in v1.7.2
chat-ai-widget - v1.7.2

Published by liamcho 4 months ago

[1.7.2] (July 04, 2024)

Feat:

  • FormInput of FormMesage now supports two new MessageFormItem.style.layout types: chip and textarea
  • Added window.sbWidget interface to allowing control of the widget state and cache clearing from a non-React environment

Update:

  • MessageFeedbackModal is now being displayed within the widget window
  • autoOpen is now being ignored in mobile view
chat-ai-widget - v1.7.1

Published by bang9 4 months ago

[1.7.1] (Jun 26, 2024)

Feat:

  • Added a file viewer that allows you to enlarge images by clicking on
    them.

Fix:

  • Fixed the text color of messages sent by third parties (not the bot)
    to display correctly.

Chore:

  • Re-applied the autoOpen settings as configured in the dashboard.
chat-ai-widget - v1.7.0

Published by liamcho 4 months ago

[1.7.0] (Jun 24, 2024)

Feat:

  • Migrated endpoint for FormMessage to a new one
chat-ai-widget - v1.6.5

Published by bang9 4 months ago

[1.6.5] (Jun 18, 2024)

Feat:

  • Added botStudioEditProps.styles.toggleButtonUrl to customize the toggle button image.
  • Exported WidgetButton component.

Fix:

  • Fixed the disabled placeholder for waiting suggested replies.
  • Fixed the issue where JavaScript would run when a link was ctrl + clicked.
chat-ai-widget - v1.6.4

Published by bang9 4 months ago

[1.6.4] (Jun 13, 2024)

Fix:

  • Fixed an issue where the link text color did not change according to the theme.
chat-ai-widget - v1.6.3

Published by bang9 4 months ago

[1.6.3] (Jun 11, 2024)

Fix:

  • Fixed the positioning of the scroll-to-bottom button.
  • Fixed the positioning of the "powered by" banner.
  • Added an underline to links in messages.
chat-ai-widget - v1.6.2

Published by bang9 4 months ago

[1.6.2] (Jun 7, 2024)

Feat:

  • Added video message support for bot messages. The widget now supports video messages sent by the bot.
  • Added support for using new channels in widget_setting when a new channel is created.
  • Added sessionToken prop for managing manual sessions.

Fix:

  • Fixed a bug where the widget would not connect to the bot when the cached channel is not found and now creates a new channel.
  • Fixed a bug where the feedback did not work according to the option set in the dashboard.

Chore:

  • Removed the default value of false for mentions in self-service.
chat-ai-widget - v1.6.1

Published by liamcho 5 months ago

[1.6.1] (Jun 4, 2024)

change:

  • Removed auto focusing of message input when disabled state changes to false
chat-ai-widget - v1.6.0

Published by liamcho 5 months ago

[1.6.0] (May 31, 2024)

Feat:

  • Added messageInputControls to Constant. It allows to control enabled/disabled state of the message input
  • Added dateLocale to Constant. It is applied to string values of message timestamp and date separator
  • Added the enableHideWidgetForDeactivatedUser to Constant. It is used to decide whether the chatbot widget is hidden or not when the user is deactivated
import { ar } from 'date-fns/locale';

<ChatAiWidget
  applicationId={props.applicationId}
  botId={props.botId}
  messageInputControls={{
    blockWhileBotResponding: 30000, // Change force unblock timeout to 30 seconds. Default value is 10 seconds.
  }}
  dateLocale={ar} // Applies Arabic locale.
  enableHideWidgetForDeactivatedUser={true}
/>

Refer to Available props section in README.md file for details.

Fix:

  • Fixed a bug where multiple timestamps of messages are not grouped into one when should be if botStudioEditProps.welcomeMessages is given
chat-ai-widget - v1.5.12

Published by bang9 5 months ago

[1.5.12] (May 28, 2024)

Feat:

  • Added horizontal suggested replies support.

Fix:

  • Fixed a bug where the configure session functionality was not working correctly.

Chore:

  • Displayed MessageDataContent for the last message only.
  • Updated the custom session guide.
Package Rankings
Top 16.42% on Npmjs.org
Related Projects