The Slash Command Series - Types of Command Suggestions

The Slash Command Series - Types of Command Suggestions

Hi Everybody!

I hope you guys tried the /zdocs command and now have an idea of how command suggestions with click to execute work. If you have no clue of what command suggestion is, I recommend you to take a look at all the Slash Command Series posts, especially the one on Command Suggestions ! This post is all about the different types of command suggestions. 

Customise your command suggestions 

Did you know you could customise your command suggestion list with a title, description, image? Well, now you do! So let's try creating a few sample suggestions. Also, keep in mind that disabling the 'Click to Execute' option will allow users to make multiple selections from the suggestions list! 

A single suggestion entity can have the following 
  • Title
  • Description
  • Image 
You can return an array of suggestion entities in the command suggestion code. This will pop up the suggestion list in the chat window when the user enters the command. 

Note : Command suggestions with only description is not possible and it's not practical as well.

Command suggestions with title, description and image 

  1. list = List();
  2. entry = Map();
  3. entry.put(" title ","User Guide");
  4. entry.put(" description ","Refer our User Guide to get started with Cliq!");
  5. entry.put(" imageurl ","<insert_image_url>");
  6. list.add(entry);
  7. return list;

 

 
Command suggestions with title 
  • Use the 'title' key and give your title value. The /zdocs command is an example! 
  1. list = List();
  2. entry = Map();
  3. entry.put(" title ","<insert_title>");
  4. list.add(entry);
  5. return list;


Command suggestions with image

  • Use the 'imageurl' key and give your image URL as the value. The /giphy command is a great example. Type /giphy followed by your key word to get the list of suggestions! 

Command suggestions with title and image 
  • In addition to the title key, use the 'imageurl' key and enter your image URL.
  1. list = List();
  2. entry = Map();
  3. entry.put(" title ","User Guide");
  4. entry.put(" imageurl ","<insert_image_url>");
  5. list.add(entry);
  6. return list;

Command suggestions with title and description

  • Use the 'description' key and enter the suggestion's description as the value.

  1. list = List();
  2. entry = Map();
  3. entry.put(" title ","User Guide");
  4. entry.put(" description ","Refer our User Guide to get started with Cliq!");
  5. return list;


I suggest you to try working with command suggestions and let me know! 

Suggestions and discussions are welcome!

Links to refer :

1) Slash Command Introduction

2) Cliq Help - Commands

Best,
Manasa 
Cliq
 

 
    • Sticky Posts

    • Cliq Bots - Get notifications about any action on an application with the incoming webhook handler!

      Webhooks can be used to get notified about events happening in other applications inside Cliq. All bots in Cliq have their own incoming webhook endpoint. This makes it simple to post messages to the bot from external applications. Unlike the send message (/message) REST API, here any data can be posted to the endpoint which is further processed in the incoming handler before notifying in Cliq. The incoming webhook allows third-party applications to send notifications/alerts using the incoming webhook
    • Convert a message on Cliq into a task on Zoho Connect

      Message actions in Cliq are a great way to transform messages in a conversation into actionable work items. In this post, we'll see how to build a custom message action that'll let you add a message as a task to board on Zoho Connect.  If you haven't created a board in Zoho Connect, then head over to this help document to know how to create one.  For this example, we've created a board for the Zylker Campaigns team in Zoho Connect. The board has three sections: User Interface, Content Marketing,
    • Cliq Bots - Post message to a bot using the command line!

      If you had read our post on how to post a message to a channel in a simple one-line command, then this sure is a piece of cake for you guys! For those of you, who are reading this for the first time, don't worry! Just read on. This post is all about how
    • The Slash Command Series - Types of Command Suggestions

      Hi Everybody! I hope you guys tried the /zdocs command and now have an idea of how command suggestions with click to execute work. If you have no clue of what command suggestion is, I recommend you to take a look at all the Slash Command Series posts, especially the one on Command Suggestions ! This post is all about the different types of command suggestions.  Customise your command suggestions  Did you know you could customise your command suggestion list with a title, description, image? Well,
    • Breaking down the Zoho Cliq platform workflow

      Let's say you want to automate your everyday work activity. You turn towards apps that help you stay productive while automating your regular day-to-day work items. What if we say Cliq serves the purpose? Zoho Cliq offers a set of internal tools or components to automate your day-to -day work tasks. Let's take a look at what these components are and how they work: Bots as Conversational Assistants: Bots are your personal assistants on Cliq. They can connect to any third party service, and bring in

      Zoho SalesIQ Resources



            Zoho TeamInbox Resources

              Zoho DataPrep Resources


                  Zoho CRM Plus Resources

                    Zoho Books Resources


                      Zoho Subscriptions Resources

                        Zoho Desk Resources

                          Zoho Projects Resources


                            Zoho Sprints Resources


                              Qntrl Resources


                                Zoho Creator Resources


                                  Zoho WorkDrive Resources




                                      Zoho Campaigns Resources

                                        Zoho CRM Resources

                                                    Design. Discuss. Deliver.

                                                    Create visually engaging stories with Zoho Show.

                                                    Get Started Now


                                                      Zoho Show Resources


                                                        Zoho Writer Writer

                                                        Get Started. Write Away!

                                                        Writer is a powerful online word processor, designed for collaborative work.

                                                                  有料プランをご利用の方