How can I capture the Cliq channel name from Deluge Script?

How can I capture the Cliq channel name from Deluge Script?

I am working on a chat automation with a third party tool called Make.com. Using a webhook I am relaying information from the Bot I have created in Zoho Cliq to Make.com Webhook.

I am using the Mention Handler of the bot in Cliq to relay information like firstName, lastName, userID, esrEmail, chatID but I am not able to get the deluge script to get me the channel name. I am hoping if someone can help me figure out the identifier that I can use to capture channel name.

For reference here is my Deluge code for mention handler:

  1. // Get the user's message
  2. user_message = message;
  3. // Create the payload with the actual message and user info
  4. make_payload = Map();
  5. make_payload.put("userMessage",user_message);
  6. // Add user information - these ARE available in the Mention Handler
  7. make_payload.put("userFirstName",user.get("first_name"));
  8. make_payload.put("userLastName",user.get("last_name"));
  9. make_payload.put("userId",user.get("id"));
  10. // This is the ZUID you need for Reply To
  11. make_payload.put("userEmail",user.get("email"));
  12. // Add chat context information
  13. make_payload.put("chatId",chat.get("id"));
  14. make_payload.put("chatName",chat.get("name"));
  15. // Add message ID for reply feature
  16. if(!message_details.isNull())
  17. {
  18. make_payload.put("messageId",message_details.get("message").get("id"));
  19. }
  20. // Make.com webhook URL
  21. make_webhook_url = "(Webhook URL)";
  22. // Send the data to Make.com
  23. webhook_response = invokeurl
  24. [
  25. url :make_webhook_url
  26. type :POST
  27. parameters:make_payload.toString()
  28. content-type:"application/json"
  29. ];
  30. // Optional - provide feedback that the bot received the message
  31. response = Map();
  32. return response;

    • Sticky Posts

    • 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
    • Bulk user onboarding for Cliq Channels in a jiffy

      As developers, we frequently switch between coding, debugging, and optimizing tasks. The last thing we want is to be burdened by manual user management. Adding users one by one to a channel is tedious and prone to errors, taking up more time than we could