Build AI Chatbot in minutes with Sendbird Chatbot Widget.
MIT License
Bot releases are hidden (Show)
Published by bang9 about 1 month ago
Published by bang9 about 1 month ago
Published by bang9 about 1 month ago
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).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 [];
},
},
}}
/>
);
};
callbacks.onWidgetSettingFailure
in Constant
for handling widget setting failurePublished by liamcho 2 months ago
enableWidgetExpandButton
in Constant
. Refer to Available props section in README.md file for detailsWidgetWindowFullScreen
no longer disconnects while network is connectedtel:
, mailto:
, or sms:
are now being considered as urlPublished by bang9 2 months ago
Deprecated version
Published by bang9 2 months ago
Published by bang9 3 months ago
Published by bang9 3 months ago
Published by liamcho 3 months ago
FormMessage
introduced in v1.7.2Published by liamcho 4 months ago
FormInput
of FormMesage
now supports two new MessageFormItem.style.layout
types: chip
and textarea
window.sbWidget
interface to allowing control of the widget state and cache clearing from a non-React environmentMessageFeedbackModal
is now being displayed within the widget windowautoOpen
is now being ignored in mobile viewPublished by bang9 4 months ago
Published by liamcho 4 months ago
FormMessage
to a new onePublished by bang9 4 months ago
botStudioEditProps.styles.toggleButtonUrl
to customize the toggle button image.WidgetButton
component.Published by bang9 4 months ago
Published by bang9 4 months ago
Published by bang9 4 months ago
widget_setting
when a new channel is created.sessionToken
prop for managing manual sessions.false
for mentions in self-service.Published by liamcho 5 months ago
Published by liamcho 5 months ago
messageInputControls
to Constant
. It allows to control enabled/disabled state of the message inputdateLocale
to Constant
. It is applied to string values of message timestamp and date separatorenableHideWidgetForDeactivatedUser
to Constant
. It is used to decide whether the chatbot widget is hidden or not when the user is deactivatedimport { 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.
botStudioEditProps.welcomeMessages
is givenPublished by bang9 5 months ago