Trulience Avatar
You can configure the Trulience Avatar settings here. This will give you a nice avatar for your chat.
{
if (data.enable_trulience_avatar === true) {
if (!data.trulience_avatar_id) {
toast.error("Trulience Settings", {
description: `Please provide Trulience Avatar ID`,
})
return
}
}
dispatch(setTrulienceSettings({
enabled: data.enable_trulience_avatar as boolean,
avatarId: data.trulience_avatar_id as string,
avatarToken: data.trulience_avatar_token as string,
avatarDesktopLargeWindow: data.trulience_large_window as boolean,
trulienceSDK: data.trulience_sdk_url as string,
animationURL: data.trulience_animation_url as string,
}))
toast.success("Trulience Settings", {
description: `Settings updated successfully`,
})
}}
/>