This article provides detailed information about the properties, methods, and events available in the Chat Control.
This section describes all available properties of the Chat Control.
Specifies the Design System Object used to style the Chat Control. Read more at Style property.
Assigns a CSS class to the Chat Control to customize its appearance. Read more at Class property.
Specifies the Design System Object to use for styling Markdown content in the Chat Control. Read more at MarkdownStyle property.
Indicates whether the EmptyChat slot should be displayed when there are no messages in the chat. Read more at ShowEmptyChatContent property.
Indicates whether the AdditionalContent slot should be displayed in the chat. Read more at ShowAdditionalContent property.
Defines the scrolling behavior of the Chat Control when messages are received. Read more at AutoScroll property.
Specifies how a new user message is aligned within the message list. Read more at NewUserMessageAlignment property.
Specifies whether an animation is applied when repositioning a new user message in the message list. Read more at NewUserMessageScrollBehavior property.
Stores the collection of messages displayed in the Chat Control, including both user inputs and agent responses. Read more at Messages property.
Allows translating the texts displayed in the Chat Control interface. Read more at Translations property.
Indicates whether the Chat Control will send all previous messages or only the new message to the Procedure configured in the SendMessageHandlerObject property. Read more at SendHistoryMessages property.
Indicates the Procedure object that handles messages sent from the Chat Control. Read more at SendMessageHandlerObject property.
This section describes the methods provided by the Chat Control.
Sends a message from the user, either typed manually or sent programmatically through the chat.
Return value: None
Parameters: text: Character
Stops the reception of a response that is currently being received by the chat.
Return value: None
Parameters: None
Inserts a new message into the chat conversation.
Return value: None
Parameters: message: MessageUI
Updates the last message in the chat conversation.
Return value: None
Parameters: message: MessageUI , [mode:'replace' | 'concat']
replace: Replaces the entire last message with the new content.
concat: Concatenates the new content to the existing last message.
Triggered when the user sends a message. It is executed on the client side to manage communication with the server.
Note: This event is not triggered if the SendMessageHandlerObject property is configured. In that case, the AddNewMessage and UpdateLastMessage methods are used to handle the response.
Triggered after a message has been successfully sent.
Triggered when the chat has finished receiving a response from the Agent.
Triggered when the reception of a response is interrupted, either by user interaction with the Chat Control or through the StopResponse method.
Triggered when the chat receives a message of type error.
This means the communication was successful, but the response contains an error message that should be shown in the chat.
Triggered when the communication with the configured object fails.
The Style property is available since GeneXus Next 2026.01 and GeneXus 18 Upgrade 15.