Chat
Action
The Action
class is designed to create and manage actions to be sent and displayed in the chatbot user interface. Actions consist of buttons that the user can interact with, and these interactions trigger specific functionalities within your app.
Attributes
Name of the action, this should match the action callback.
The payload associated with the action.
The lucide icon name for the action button. See https://lucide.dev/icons/.
The label of the action. This is what the user will see. If no label and no icon is provided, the name is display as a fallback.
The description of the action. This is what the user will see when they hover the action.
Usage
Was this page helpful?