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 question" that could have waited. Sound familiar?
Using the Cliq Platform components, let's create a custom solution to update your status automatically. This way, there will be no more manual toggles, allowing you to maintain uninterrupted focus and enhance transparent communication in your workplace.
Pre-requisite:
Before beginning to script the code below, we must create a connection with
Zoho Cliq. Once a connection is created and connected, you can use it in
Deluge integration tasks and
invoke URL scripts to access data from the required service.
Create a Zoho OAuth default connection with any unique name ("updateworkstatus" for this example) and the scope – ZohoCliq.Profile.UPDATE.
Refer to the below links to learn more:
Steps
- After a successful login in Cliq, hover to the top right corner and click your profile. Post clicking, navigate to Bots & Tools > Schedulers.
- On your right, click the button - Create Scheduler.
- To know more about schedulers and their purposes, refer to Introduction to schedulers.
- Create a scheduler using your preferred name. Specify the following details: the scheduler name and a description.
- For the recurring period, choose the type as "Weekly." Select Monday through Friday and set the time of execution to 1 PM or any other time that aligns with your meal break, or customize the recurring period based on your specific use case.
- Finally, click "Save & edit code" and paste the following code.

- params = Map();
- params.put("code","away");
- // Add your customized status
- params.put("message","Lunch break");
- statusTimestamp = zoho.currenttime.addHour(2);
- userTimezone = user.get("timezone");
- statusTimestamp = statusTimestamp.toString().unixepoch(userTimezone);
- params.put("expiry",statusTimestamp);
- info params;
- updateStatus = invokeurl
- [
- url :"https://cliq.zoho.com/api/v2/statuses/ephemeral"
- type :PUT
- parameters:params.toString()
- detailed:true
- connection:"updateworkstatus"
- ];
- info updateStatus;
Automating status updates is like having a personal assistant who never sleeps. Whether you're dodging lunch-break notifications or trying to carve out distraction-free work time, this simple solution can transform your workday. With Cliq Schedulers, your profile status updates happen automatically, allowing you to focus and recharge. Why settle for less when you can work smarter?
We're here to help, so don't hesitate to reach out to support@zohocliq.com with any questions or if you need assistance in crafting even more tailored workflows.