Cliq Schedulers - Configure a scheduler or ten to manage work effortlessly!

Cliq Schedulers - Configure a scheduler or ten to manage work effortlessly!

About schedulers

Schedulers are the newest addition to Cliq's Platform Components and also a blessing in disguise to manage our ever growing list of work items! Schedulers allow you to trigger and perform timed actions. These actions can be anything such as a simple scheduler that posts a message in the team channel, asking everyone to update their weekly status or a scheduler that is triggered every morning to bring the list of tasks from your task list! 

Configuring schedulers

This is a pretty straightforward process. Start off by choosing when you'd like to execute the scheduler, it can be everyday or weekly or even on a monthly basis. A detailed description of the various options available for configuring is given in this help page. And finally, decide if your scheduler should post the message in a channel or to a user or to a bot with the help of our simple deluge tasks!

What next?

Once you are happy with the scheduler's code, save it! Now, the most important part is to take your scheduler for a trial run. Click on your scheduler's name to open the Scheduler Preview. Click on the Trial Run button to execute the scheduler and give a response. 

Note: If your scheduler contains connections, then you'll get a dialog prompt asking permission to access that third party application's account. Click on Allow Access and grant permission!

Launch a scheduler now!

There can be countless number of reasons why people build a scheduler using Cliq Platform. A great example would be the Zylker User Education Team. This team uses the Todoist Application to keep track of their tasks for the day and make it a point to update all their tasks, however minute it might be in Todoist. So, it is quite natural for them to keep checking Todoist for adding, updating or checking if any other task is added. Now the team uses Cliq to communicate within themselves and also with other teams as well! An ideal solution would be to create a bot which can create a task, bring pending tasks for you and a scheduler that runs every morning to get the list of tasks for the day to post it in a channel! Take a look at the workflow behind this particular scheduler

To create a custom connection with Todoist

  1. Create an applet for Cliq in Todoist and generate a Client ID and Client Secret. 
  2. Give the Client ID and Secret followed by the Authorization URL, Access Token URL and the Refresh Token URL in Cliq's create connection page. 
  3. Give your connection name and define the scopes to access different modules.
  4. Save your connection and use the invoke URL task it in your scheduler code!
Once this is done, create your scheduler. 

To create a scheduler in Cliq

  1. Go to Integrations in Cliq's top nav bar. 
  2. Select Schedulers and click on Create Scheduler. 
  3. Give your scheduler name and description. 
  4. Select the scheduler recurring period as 'Everyday' and recurring time as '9.00 A.M'
  5. Click Save & Edit Code. 
Here's a short video on the custom connection and scheduler's creation. 


The sample code snippet for the todoist scheduler is given below. Find the instant button's function code snippet attached! 

  1. message = Map();
  2. response = invokeurl
  3. [
  4. url :" https://beta.todoist.com/API/v8/tasks "
  5. type :GET
  6. connection:"<insert_your_connection_link_name>"
  7. ];
  8. task = response.toList();
  9. if(task.size() > 0)
  10. {
  11. rows = List();
  12. for each  taskItem in task
  13. {
  14. content = taskItem.get("content");
  15. info content;
  16. url = taskItem.get("url");
  17. info url;
  18. row = Map();
  19. row.put("Task Name"," :task: " + content);
  20. row.put("Mark as complete","[+Complete](invoke.function|<function_name>|<insert_your_email_address>|" + taskItem.get("id") + ")");
  21. row.put("View Task","[View Task](" + url + ")");
  22. rows.add(row);
  23. }
  24. message = {"text":"Hey there, your list of tasks is here!","bot":{"name":"Todoist","image":"<insert_image_url>" },"slides":{{"type":"table","title":"","data":{"headers":{"Task Name","Mark as complete","View Task"},"rows":rows}}}};
  25. }
  26. else
  27. {
  28. message = {"text":"Looks like there are no tasks for today! :grinning: "};
  29. }
  30. zoho.cliq.postToChannel("<channel_unique_name>",message);

That's it!

Let us know on the schedulers you've configured to make your worklife easy! 

Best,
Manasa
Cliq 










    • 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,