Introduction to Slash Commands
Slash Commands are great time savers that can be initiated right from your chat window, making place for effective communication. Commands like /pin and /mute helps the user pin or mute the respective channel or a chat.
NOTE: Take a quick tour of our help guide to explore the full range of possibilities on how to create and execute a Slash Command.
Commands can be categorized as
- Built-in commands
As the name suggests, built-in commands are built within Cliq (eg. pin, mute) that helps the end user simplify the work. (Here's a list of all the built-in commands available in Cliq).
- Custom commands
You can custom build a command for your organisation. The command that's created by you will be displayed right below the My Commands section and the commands created by the members of your organization will be listed under the All Commands section.
- Cliq extension commands
Commands that are available to the user by installing an extension from Zoho Marketplace are called Cliq Extension Commands. For instance, installing a projects extension from the Marketplace appends a /projects command.
Command implementation
Commands can be implemented with arguments, parameters, suggestions, mentions and attachments separately or can be created using all of them together. Also to know more on how to create a command head over to Managing Commands.
Commands with arguments
Arguments are additional value or input that is passed to the command and is available in the arguments attribute. In the example mentioned below, using /traffic command followed by Pleasanton (argument) will display the traffic details in Pleasanton from a user defined location.
Commands with parameters
Parameters can be used to pass specific information to the command. In the given example below the parameters passed to the command are, /traffic -to San Diego International Airport -from Pleasanton. The options (to, from) object of data type map will have a key defined by the developer and a value given by the user.
Commands with suggestions
Suggestions are choices that you provide the user to select from before the command execution. The selection made is available in the selection object of the list data type. Upon a selection by the user, the suggestion handler is triggered. A "/youtube" command followed by a string pulls out a list of suggestion videos related to the topic of search.
Commands with mentions
Mentions are @mentions passed to the command before it's execution and are available in the mentions attribute. The example given below shows that Olivia pulls the list of tasks assigned to Jacob by executing the command /pulltasks @Jacob-SEO Analyst.
Commands with attachments
Attachments (documents, images or files) can be added along with the command that are available in the attachments attribute. In the example below the /Converttodoc will convert a file in .doc format.