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

 

 





    Zoho Developer Community






                              Zoho Desk Resources

                              • Desk Community Learning Series


                              • Digest


                              • Functions


                              • Meetups


                              • Kbase


                              • Resources


                              • Glossary


                              • Desk Marketplace


                              • MVP Corner


                              • Word of the Day



                                  Zoho Marketing Automation
                                          • Sticky Posts

                                          • 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
                                          • 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
                                          • Cliq Bots - How to make a bot respond to your messages?

                                            Bots are just like your buddies with whom you can interact. They carry out your tasks, keep you notified about your to-dos and come in handy when you need constant updates from a third party application.  So, how can you make your bot respond to a message? The bot message handler is a piece of code triggered when a message is sent to the bot. Message handlers help you customise your bot responses to make it look conversational. The message input from the user can be either a string or an option selected
                                          • 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
                                          • 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,


                                          Manage your brands on social media



                                                Zoho TeamInbox Resources

                                                  Zoho DataPrep Resources



                                                    Zoho CRM Plus Resources

                                                      Zoho Books Resources


                                                        Zoho Subscriptions Resources

                                                          Zoho Projects Resources


                                                            Zoho Sprints Resources


                                                              Qntrl Resources


                                                                Zoho Creator Resources


                                                                  Zoho WorkDrive Resources



                                                                    Zoho Campaigns Resources

                                                                      Zoho CRM Resources

                                                                      • CRM Community Learning Series

                                                                        CRM Community Learning Series


                                                                      • Tips

                                                                        Tips

                                                                      • Functions

                                                                        Functions

                                                                      • Meetups

                                                                        Meetups

                                                                      • Kbase

                                                                        Kbase

                                                                      • Resources

                                                                        Resources

                                                                      • Digest

                                                                        Digest

                                                                      • CRM Marketplace

                                                                        CRM Marketplace

                                                                      • MVP Corner

                                                                        MVP Corner

                                                                      





                                                                      




                                                                          Design. Discuss. Deliver.

                                                                          Create visually engaging stories with Zoho Show.

                                                                          Get Started Now