suggestionsBehaviorString(default: "send")

Controls what happens when a user selects a message suggestion. Supported values:

  • "send": The suggestion text is immediately sent as a message.
  • "insert": The suggestion text is inserted into the message box input, allowing the user to edit it before sending.

Example

<div id="chat"></div>
<script>
$("#chat").kendoChat({
    suggestionsBehavior: "insert",
    suggestions: [
        { text: "Option 1" },
        { text: "Option 2" },
        { text: "Option 3" }
    ],
    authorId: "user"
});
</script>
In this article
suggestionsBehavior
Not finding the help you need?
Contact Support