Skip to main content

AI Chatbot Initiate Button

Overview

The LMChatAIButton component is responsible for initiating the SDK and navigating the user to a chatroom with the AI Chatbot.

LMFeedMediaPreviewScreen

Styling Customisation

These styling properties for the LMChatAIButton component can be set using the setLMChatAIButtonStyle on the STYLES object.

PropertyTypeDescription
buttonStyleViewStyleDefines the style for the user's name.
textStyleTextStyleDefines the style for the user's title.
iconStyleImageStylePlaceholder text for the search input.

Props

PropertyTypeDescription
textstringThe text displayed on the button.
textSizenumberThe size of the text on the button.
textColorstringThe color of the text.
backgroundColorstringThe background color of the button.
borderRadiusnumberThe border radius of the button.
iconObjectThe icon displayed on the button.
iconPlacementstringThe position of the icon on the button.
apiKeystringThe API key required for authentication.
uuidstringThe unique identifier for the user.
userNamestringThe name of the user.
imageUrlstringThe URL of the user's image.
isGuestbooleanIndicates whether the user is a guest.
accessTokenstringThe access token for authentication.(API Key Security flow)
refreshTokenstringThe refresh token for renewing access.(API Key Security flow)
onTap() => voidThe function executed when the button is tapped.