Deluge Help

Zoho Cliq Integration Attributes

Chat ID

To get the chat ID of a recipient,

  1. Navigate to the Integrations icon on the top right corner.

  2. Edit the code of any of your commands.

    • Save the following script.

      Script:

       

       <variable> = chat.get("id");

       

    • Execute the command in the chat window of the contact whose chat ID needs to be retrieved. (For instance, in the below example, /postamessage is the command that is executed and 2231000000000000000 is the chat ID retrieved).

Channel Name

To get a Channel's unique name,

  1. Select the desired channel whose name has to be retrieved.

  2. Click on the channel icon.

  3. Click on the Connectors tab.

  4. The API Endpoint will have the channel's unique name. It is of the format,
    https://cliq.zoho.com/api/v2/channelsbyname/<channel_unique_name>/message

Bot Name

To get a Bot's unique name,

  1. Select the desired Bot whose name has to be retrieved from the list of subscribed Bots.

  2. Click on the Bot icon

  3. The API Endpoint will have the Bot's unique name. It is of the format,
    /api/v2/bots/<bot_unique_name>/message.

ZUID

To get the ZUID of a recipient,

  1. Navigate to the Integrations icon on the top right corner.

  2. Edit the code of any of your commands.

    • Save the following script.
      Script:

       <variable> = chat.get("members").get(0).get("id");

       

    • Execute the command in the chat window of the contact whose ZUID needs to be retrieved. (For instance, in the below example, /postamessage is the command that is executed and 658700000 is the ZUID retrieved).

Related Links

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com