Basic Concepts
Command
Commands are a great way to capture user intent in a deterministic way.
Attributes
Identifier for the command, this will be used in the UI.
The lucide icon name for the command. See https://lucide.dev/icons/.
The description of the command.
Whether to display the command as a button in the message composer.
Whether to keep the command active after the user sent the message.
Set available commands
You can set the available commands at any moment using the cl.context.emitter.set_commands
method.
The user selecting a command
Was this page helpful?