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

    • Customer payment alerts in Zoho Cliq

      For businesses that depend on cash flow, payment updates are essential for operational decision-making and go beyond simple accounting entries. The sales team needs to be notified when invoices are cleared so that upcoming orders can be released. In contrast,
    • Automating Employee Birthday Notifications in Zoho Cliq

      Have you ever missed a birthday and felt like the office Grinch? Fear not, the Cliq Developer Platform has got your back! With Zoho Cliq's Schedulers, you can be the office party-cipant who never forgets a single cake, balloon, or awkward rendition of
    • Accelerate Github code reviews with Zoho Cliq Platform's link handlers

      Code reviews are critical, and they can get buried in conversations or lost when using multiple tools. With the Cliq Platform's link handlers, let's transform shared Github pull request links into interactive, real-time code reviews on channels. Share
    • App Spotlight : PagerDuty for Zoho Cliq

      App Spotlight brings you hand-picked apps to enhance the power of your Zoho apps and tools. Visit the Zoho Marketplace to explore all of our apps, integrations, and extensions. In today's fast-paced world, seizing every moment is essential for operational
    • Automate your status with Cliq Schedulers

      Imagine enjoying your favorite homemade meal during a peaceful lunch break, when suddenly there's a PING! A notification pops up and ruins your moment of zen. Even worse, you might be in a vital product development sprint, only to be derailed by a "quick