Syntax
Parameters
The message to send. The value can be a simple string or a
MessageRequest object.Optional settings. Use
{ silent: true } to hide the message from the UI.Returns
Promise<void>
Resolves when the message is sent.
Examples
The following example sends a simple text message:Considerations
silent option
Silent messages are sent to the agent but remain hidden from the chat UI. Use the silent option when you need to trigger agent responses without cluttering the conversation.
When you send a silent message, the following sequence occurs:
- Message is sent to the agent for processing.
- Message is hidden from the chat UI.
- Agent can respond (response is visible to user).
- User only sees the agent’s response, not the trigger.
MessageRequest with additional_properties
For more control, use a MessageRequest object to specify message properties including visibility, thread targeting, and custom context.
MessageRequest structure
MessageRequest:
Override behavior
When you use both aMessageRequest object and the { silent: true } option, the { silent: true } option takes precedence:
-
{ silent: true }option It always hides the message. -
skip_render: truein message
It hides the message. -
skip_render: falsein message It shows the message. - No option or property It shows the message. This is the default.
- Use
{ silent: true }for simple cases and quick overrides. - Use
additional_properties.display_properties.skip_renderwhen buildingMessageRequestobjects. - Combine both when you need to override message object settings at runtime.
Do you need practical examples?
Learn how to apply the features available for embedded chat into your implementation with guidance and examples.

