Message Actions: Do more than just Forward, Reply on your chat messages by creating custom actions

Message Actions: Do more than just Forward, Reply on your chat messages by creating custom actions

Message actions are user actions or interactions performed on a message. Usually, when a message is sent or received, a user is likely to perform some task after the message has been sent/received. All chat interfaces come with a default set of message actions such as Reply, Forward, Delete, Share and so on. But what if these options do not satisfy your requirements? 

Cliq solves this shortcoming by providing an option to create custom message actions!

Let us consider a situation where the #design channel is rife with discussions on a particular design. Now once the decision is made, it is important to add the new template design to the Zoho Docs folder the team maintains. Or if the team wants to add this design to their list of tasks in Trello, they can go ahead and create a message action for that too! This requirement can be satisfied by creating two custom message actions - Upload to Zoho Docs and Create a card in Trello. 

This scenario is just a simple example of how message actions can be utilized. Similarly, custom message actions open up abundant possibilities for each type of message ( text, attachment, URL) 

Sample Scenario

The sample scenario here focuses on how to upload messages of the type (attachments) to Zoho Docs!

Breaking down the Zoho Docs Message Action Workflow - 
  1. A user selects the 'Upload to Zoho Docs' option for an attachment.
  2. The Zoho docs action handler is triggered 
  3. The link between Cliq and Zoho Docs is established using 'Connections' 
  4. The file is uploaded successfully.
Prerequisites
  1. Learn how to create a message action and the attributes passed when a message action handler is triggered in our help page
  2. Creating a connection with Zoho Docs is mandatory for this message action to work. Take a look at how to create a connection
  3. Before getting started, make sure to go through the Zoho Docs APIs to get a better understanding of the mandatory headers and the parameters. 

Take a look at the code snippet given below! 

  1. // Upload your file to Zoho Docs
  2. output = Map();
  3. docsparams = Map();
  4. att = attachments.get(0);
  5. docsparams.put("stringPart","true");
  6. docsparams.put("paramName","filename");
  7. docsparams.put("content","" + att);
  8. fileslist = List();
  9. fileslist.add(docsparams);
  10. att.setParamName("content");
  11. fileslist.add(att);
  12. response1 = invokeurl
  13. [
  14. url :"https://apidocs.zoho.com/files/v1/upload"
  15. type :POST
  16. files:fileslist
  17. connection:"insert_your_connection_link_name"
  18. ];
  19. info response1;
  20. output.put("text","Uploaded to your ZOHO Docs! (y)");
  21. return output;

The gif shown below illustrates how easy it is to upload a file to your Zoho Docs with a message action. 


 
It is indeed this easy to create integrations in Cliq using Cliq's platform! Why wait then? Get started with creating message actions. Please leave your comments and suggestions for us in the section below. 


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