Suggested Actions

The Chat messages may contain suggestions for quick actions such as preset replies.

The Chat displays suggested actions for the last message only.

Supported Action Types

The Chat provides built-in support for the following action types:

  • openUrlOpens a new browser window with the specified URL.
  • replySends the action value as a reply in the Chat.
  • callTreats the value as a phone number. Similar to clicking a telephone link.
  • otherHandled by user code in the ExecuteActionEvent.

Defining Quick Actions

To define quick actions for a message, populate the suggestedActions field of the message.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?