Table of contents
Official Content

This article provides detailed information about the properties, methods, and events available in the Chat Control.

Properties

This section describes all available properties of the Chat Control.

Style property

Specifies the Design System Object used to style the Chat Control. Read more at Style property.

Class property 

Assigns a CSS class to the Chat Control to customize its appearance. Read more at Class property.

MarkdownStyle property

Specifies the Design System Object to use for styling Markdown content in the Chat Control. Read more at MarkdownStyle property.

ShowEmptyChatContent property

Indicates whether the EmptyChat slot should be displayed when there are no messages in the chat. Read more at ShowEmptyChatContent property.

ShowAdditionalContent property

Indicates whether the AdditionalContent slot should be displayed in the chat. Read more at ShowAdditionalContent property.

AutoScroll property

Defines the scrolling behavior of the Chat Control when messages are received. Read more at AutoScroll property.

NewUserMessageAlignment property

Specifies how a new user message is aligned within the message list. Read more at NewUserMessageAlignment property.

NewUserMessageScrollBehavior property

Specifies whether an animation is applied when repositioning a new user message in the message list. Read more at NewUserMessageScrollBehavior property.

Messages property 

Stores the collection of messages displayed in the Chat Control, including both user inputs and agent responses. Read more at Messages property.

Translations property

Allows translating the texts displayed in the Chat Control interface. Read more at Translations property.

SendHistoryMessages 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.

SendMessageHandlerObject property

Indicates the Procedure object that handles messages sent from the Chat Control. Read more at SendMessageHandlerObject property.

Methods

This section describes the methods provided by the Chat Control.

SendMessage method

Sends a message from the user, either typed manually or sent programmatically through the chat.

Return value: None
Parameters: text: Character 

StopResponse method

Stops the reception of a response that is currently being received by the chat.

Return value: None
Parameters: None

AddNewMessage method

Inserts a new message into the chat conversation.

Return value: None
Parameters: message: MessageUI 

UpdateLastMessage method

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.

Events

SendMessage event

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.

MessageSent event

Triggered after a message has been successfully sent.

ResponseCompleted event

Triggered when the chat has finished receiving a response from the Agent.

ResponseStopped event

Triggered when the reception of a response is interrupted, either by user interaction with the Chat Control or through the StopResponse method.

ResponseError event

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.

ConnectionFailed event

Triggered when the communication with the configured object fails.

Availability

The Style property is available since GeneXus Next 2026.01 and GeneXus 18 Upgrade 15.

 

Last update: December 2025 | © GeneXus. All rights reserved. GeneXus Powered by Globant