Plug Sample #9 - Get Notified on Cliq When Your Premium Customers Interact with SalesIQ's Zobot

Plug Sample #9 - Get Notified on Cliq When Your Premium Customers Interact with SalesIQ's Zobot

Hi everyone! 

We're here with another simple yet effective plug for your chatbot to integrate with Zoho Cliq to make your job easier. Just imagine whenever a potential lead or your premium customers are on your website, and they engage with your chatbot, you'll receive instant notifications on Cliq, complete with their details and a chat URL.

Sounds helpful, right? 

Now get all this information on your cliq as a message. If a prospect or a premium customer is conversing with the bot, then on a click you will be redirected to SalesIQ. You will get the complete information of the chat and can also take over the chat from the bot, thus providing your best assistance. 



Are you new to SalesIQ? Wondering what these plugs and bots are?

Zoho SalesIQ is a customer engagement and live chat platform for your website. To automate customer engagement, SalesIQ offers chatbots. With the Codeless bot builder, you can build chatbots by dragging and dropping cards. This bot builder has almost all essential cards needed to build your bot. However, at times, businesses would require unique actions from the bot and for those instances, we have Plugs. With plugs, you can create a unique action and bring it as a card inside the codeless bot builder like the rest of the cards. In this post, we will take a look at how to create a plug integrating your bot with Zoho Cliq and the possible benefits. 

How can this Plug help your business?
  • Get notified in Cliq when a specific type of visitor engages with chatbot. These visitors can be who you think are important for your business like premium customers, potential leads, visitor with a good lead score, visitors from a specific URL or source, visitor with CRM deal closing date period, etc. as per your requirement.
  • Cliq bot will notify on the personal chat (subscribers of the bot) or on a group channel based on the preference.
  • Get your visitor details like name, chat URL, and other information, in the message notification. 
  • Clicking on the chat URL, you will get redirected to the SalesIQ's bot conversation, where you can look at the bot chat. If required, you can take over the chat. 

Plug overview



  • The SalesIQ bot will collect the required information and send it to the Cliq bot while the conversation is ongoing. 
  • Next, the Cliq bot will send this information to personal chat or a group channel in Cliq as per your business needs.

How to build this Plug (promising lead engages with your bot) ?

Step 1 - Create a connection between SalesIQ and Zoho Cliq
  • In your SalesIQ Dashboard, navigate to Settings > Developers > Plugs > Click on Add .
  • Provide your plug a name, and description, select the Platform as SalesIQ Scripts , and finally, click on Connection to your left bottom. You will be redirected to the connection interface.
  • Click on Create connection at the top right corner. 

  • Under Default connection, select Zoho OAuth service. 

  • Provide your connection name, connection link name, and choose the scopes below.
    • ZohoCliq.Webhooks.CREATE
    • ZohoCliq.Messages.ALL
  • Click on Create And Connect to connect Zoho SalesIQ and Zoho Cliq.


Note: The Connection Link Name will be used in the scripts to invoke URL tasks.

Upon successful authentication,  Zoho SalesIQ will be connected with Zoho Cliq. 


  • The connection is successfully established. 


Step 2 - Build the Plug

As we have created a connection between SalesIQ and Cliq successfully. It's time to build the plug.  The first step in building the plug is defining the parameters. You can enter the metrics (information) which you want the SalesIQ bot to send to Cliq bot. I've taken the name, lead score, requirement (lead's interest) and conversation ID to create the chat URL.  

Input Parameters
  • Name : name | Type : String
  • Name : leadScore | Type : String
  • Name : requirement | Type : String
  • Name : conversationID | Type : String


Script to notify a specific user via Cliq bot

If you want to notify (post information) to specific users in Cliq, copy the code below and paste it into your plug builder. Then, make the following changes. 
  • In line #16, get your portal's chat URL. For that, navigate to SalesIQ > Chats > Copy the URL except the conversation ID.

  • In line #22, replace the cliq bot name in the URL. To get the bot name from your Cliq dashboard, click on your profile in the top right corner > Bots & Tools. Then, create a new bot or click on any existing bot. (All subscribers of this bot will get notified.)

  • And, make sure, the connnection line name in line #25 is same as created during creating the connection between SalesIQ and Cliq (Step 1).
Plug Script/Code
  1. if(session.containsKey("name"))
  2. {
  3. name = session.get("name").get("value");
  4. }
  5. if(session.containsKey("leadScore"))
  6. {
  7. leadScore = session.get("leadScore").get("value");
  8. }
  9. if(session.containsKey("requirement"))
  10. {
  11. requirement = session.get("requirement").get("value");
  12. }
  13. if(session.containsKey("conversationID"))
  14. {
  15. id = session.get("conversationID").get("value");
  16. chat_url = "https://salesiq.zoho.com/zylkerinc/allchats/" + id;
  17. }
  18. list_data = {"text":"Lead Infomation","slides":{{"type":"list","data":{"Name - " + name,"Lead Score - " + leadScore,"Requirement - " + requirement,"Chat URL - " + chat_url}}},"broadcast":true};
  19. //replace your cliq bot name (salesiq)  in line #22
  20. sendText = invokeurl
  21. [
  22. url :"https://cliq.zoho.com/api/v2/bots/salesiq/message"
  23. type :POST
  24. parameters:list_data + ""
  25. connection:"cliq"
  26. ];
  27. response = Map();
  28. return response;
  • Then, click Save, preview the plug and Publish it. 
Note: API invoked in the plug is Post message to a bot

Script to notify a specific channel via Cliq bot

If you want to notify (post information) to a specific channel in Cliq, copy the code below and paste it in your plug builder. Then, make the following changes. 
  • In line #16, get your portal's chat URL. For that, navigate to SalesIQ > Chats > Copy the URL except the conversation ID.
  • In line #22, replace the Cliq bot and channel name in the URL. To get the bot name, click on your profile in the top right corner > Bots & Tools. Then, create a new bot or click on any existing bot. To get the channel name, click on the channel properties and get the channel's Unique Name. 
  • And, make sure, the connnection line name in line #25 is same as created during creating the connection between SalesIQ and Cliq (Step 1).
Plug Script/Code
  1. if(session.containsKey("name"))
  2. {
  3. name = session.get("name").get("value");
  4. }
  5. if(session.containsKey("leadScore"))
  6. {
  7. leadScore = session.get("leadScore").get("value");
  8. }
  9. if(session.containsKey("requirement"))
  10. {
  11. requirement = session.get("requirement").get("value");
  12. }
  13. if(session.containsKey("conversationID"))
  14. {
  15. id = session.get("conversationID").get("value");
  16. chat_url = "https://salesiq.zoho.com/zylkerinc/allchats/" + id;
  17. }
  18. list_data = {"text":"Lead Infomation","slides":{{"type":"list","data":{"Name - " + name,"Lead Score - " + leadScore,"Requirement - " + requirement,"Chat URL - " + chat_url}}}};
  19. //replace your cliq channel (leadsfromzobot) and bot name (salesiq) in line #22
  20. sendText = invokeurl
  21. [
  22. url :"https://cliq.zoho.com/api/v2/channelsbyname/leadsfromzobot/message?bot_unique_name=salesiq"
  23. type :POST
  24. parameters:list_data + ""
  25. connection:"cliq"
  26. ];
  27. response = Map();
  28. return response;
  • Then, click Save, preview the plug and Publish it. 
Note: API invoked in the plug is Post message in a channel

Step 3 - Adding the plug to the Codeless bot builder
  • Navigate to Settings > Bot > Add, provide the necessary information, and select Codeless Bot Builder as a bot platform or open an existing bot.
  • To notify in Cliq, click on Plugs under Action cards, select the plug you have created and provide the input values for the parameters defined in the plug builder.

  • As we want to notify only the visitors whose lead score is more than 500. Use the Criteria router card and set up a rule. 

  • For lead score, provide the value "more than 500".

  • Choose the %visitor.name% variable for the name.
  • Select the %Active conversation id% to get the conversation ID for the chat URL. 

  • Get the requirement before using any input card, save it in the context variable and select the variable here. 


Plug Output

This is how the Cliq users will be notified. 

To a specific user



To a specific channel



Upon clicking the chat URL, you will be redirected to the ongoing bot chat, where you can monitor and take the chat if required. 



See you again with another efficient plug sample :)

Best regards
Sasidar Thandapani

    Access your files securely from anywhere

          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


                                                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 Campaigns Resources


                                                                            Zoho CRM Resources

                                                                            • CRM Community Learning Series

                                                                              CRM Community Learning Series


                                                                            • Kaizen

                                                                              Kaizen

                                                                            • 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


                                                                                  Zoho Show Resources


                                                                                    Zoho Writer Writer

                                                                                    Get Started. Write Away!

                                                                                    Writer is a powerful online word processor, designed for collaborative work.

                                                                                      Zoho CRM コンテンツ






                                                                                        Nederlandse Hulpbronnen


                                                                                            ご検討中の方





                                                                                                  • Recent Topics

                                                                                                  • No Hope for Zoho Meeting

                                                                                                    Zoho Meeting is just the poorest meeting app I've come across in a long time. The support sucks too. I called to see if there was anything that could be done on the backend and while I was on a test meeting with support the video was lagging and freezing
                                                                                                  • Inventory Management for Manufacturer

                                                                                                    Hello, We are a manufacturing company in the FnB industry. We want to use the inventory management system to manage our raw material stocks and at the same time once we produce items, we need to increase our final product inventory while decreasing the
                                                                                                  • Does Zoho campaign de-duplicate based on mobile for SMS campaigns?

                                                                                                    Hi - We recently sent our first SMS campaign using Zoho Campaign integrated into Burst SMS and got feedback that some of our customers received multiple messages. Upon inspection, this was due to multiple contacts in our list containing the same mobile
                                                                                                  • Develop and publish a Zoho Recruit extension on the marketplace

                                                                                                    Hi, I'd like to develop a new extension for Zoho Recruit. I've started to use Zoho Developers creating a Zoho CRM extension. But when I try to create a new extension here https://sigma.zoho.com/workspace/testtesttestest/apps/new I d'ont see the option of Zoho Recruit (only CRM, Desk, Projects...). I do see extensions for Zoho Recruit in the marketplace. How would I go about to create one if the option is not available in sigma ? Cheers, Rémi.
                                                                                                  • Why is Zoho Meeting quality so poor?

                                                                                                    I've just moved from Office 365 to Zoho Workplace and have been generally really positive about the new platform -- nicely integrated, nice GUI, good and easy-to-understand control and customisation, and at a reasonable price. However, what is going on
                                                                                                  • Chat issues

                                                                                                    I am having a couple problems with the zoho chat feature. When I use Chat from the App bar, not everyone is getting messages (these are to different accounts, Yahoo & Gmail). I did finally get the Users to show up correctly. However, when in an active chat with someone, I only get one sound notification. No other notifications, pop up or otherwise, come through to alert if another message was sent. Also, the bottom Chat bar that shows Active chats while I am in email does not show any online contacts
                                                                                                  • How to Download Expense Attachments from Zoho Expenses Using Document Details?

                                                                                                    I am currently working on syncing Zoho Expenses with our internal portal. While syncing, I can successfully retrieve expense details, including document-related information such as file_name, document_id, and other metadata. However, I am facing an issue
                                                                                                  • Zoho Creator Upcoming Updates - December 2024

                                                                                                    Hi all, We're excited to be back with the latest updates and developments on the Creator platform. Here's what we're going over this month: Deluge AI assistance Rapid error messages in Deluge editor QR code & barcode generator Expandable RTF and multi
                                                                                                  • How to Retrieve and Store Expense Attachments from Zoho Expenses?

                                                                                                    I am currently syncing Zoho Expenses with our internal portal. During the sync process, I can successfully retrieve expense details, including document-related information such as file_name, document_id, and other metadata. My goal is to retrieve these
                                                                                                  • Introducing Formula Fields for performing dynamic calculations

                                                                                                    Greetings, With the Formula Field, you can generate numerical calculations using provided functions and available fields, enabling you to derive dynamic data. You can utilize mathematical formulas to populate results based on the provided inputs. This
                                                                                                  • 5名限定 課題解決型ワークショップイベント Zoho ワークアウト開催のお知らせ (12/19)

                                                                                                    ユーザーの皆さま、こんにちは。Zoho ユーザーコミュニティチームの藤澤です。 12月開催のZoho ワークアウトについてお知らせします。 ※定員に達したため、受付を終了しました。 ━━━━━━━━━━━━━━━━━━━━━━━━ Zoho ワークアウトとは? Zoho ユーザー同士で交流しながら、サービスに関する疑問や不明点の解消を目的とした「Zoho ワークアウト」を開催します。 Zoho サービスで完了させたい設定やカスタマイズ、環境の整備など……各自で決めた目標達成に向け、 他の参加者と同じ空間で作業を行うイベントです。先輩ユーザーや他の参加者と意見交換をしながら集中して作業に取り組むことが可能です。
                                                                                                  • Does an email preview pane view register as opened?

                                                                                                    Hi, If a recipient of one of my campaigns views it in a preview pane, opposed to opening the email, does Zoho Campaigns register that email as being opened (viewed)?
                                                                                                  • Portal orders

                                                                                                    Is it possible to set up an ordering system through the portal so that my customers can place orders through their portal?
                                                                                                  • CLIENT PORTAL (If clients can place orders directly on the portal)

                                                                                                    Zoho client portal is excellent. Everything is there except one thing. Client should be able to place orders directly on the portal. This would enhance the portal and end users will be extremely happy. This suggestion infact came from one of our client.
                                                                                                  • Macro Email to be determined by a ticket field

                                                                                                    Hi, we are a commercial energy brokerage and are implementing Desk as our helpdesk tool to replace manual emails, personal whataspp and telephone. We have setup a macro rule when we can trigger an email, update ticket status and trigger a task.... but
                                                                                                  • Welcome Link Expired

                                                                                                    Hi The links sent to the users didn't get clicked on in time and now all the links have expired. Is there a way to send a new link without deleting them and re-adding them>
                                                                                                  • Zoho expense linked with Campaign instead of customers

                                                                                                    Hi, Is there a development planned for linked an expense or a report to a zoho campaign? Indeed, suppose I created a campain in which I add different clients (for example a trip to a foreign country where I meet 3 different clients), I would like this campaign to be linked to the expenses I have. Say I have a plane ticket, taxis and 1 hotel night, I would like those expenses to be linked to the 3 clients. With Zoho expense, it is not possible at the time (or maybe it is but I do not know how!). thanks
                                                                                                  • 🎄 Jingle, Mingle, and Automate: Spread Christmas Cheer with Zoho Desk Auto-Replies! 🎄

                                                                                                    Hello Everyone! Welcome to this week's episode of the Community Learning Series. Christmas is in the air, and I’m sure we can all feel the jingle and the mingle of the season! The folks at Zylker Techfix are no exception—they’re busy with holiday plans
                                                                                                  • Adjusting Physical Inventory

                                                                                                    Not getting very far with support on this one, they say they are going to fix it but nothings happened since November. Please give this a thumbs up if you would like to see this feature or comment if you have some insight. Use Case: Inventory set to be
                                                                                                  • Print PO receipt

                                                                                                    Hi I would like to print the PO receipt. There does not seem to be any way to do this. I track batch numbers and printing the PO does not show this. Only the receipt would show the details of the receipt. Currently I print the screen which does not have
                                                                                                  • Create a purchase order in vendor's currency

                                                                                                    I am having a problem working this out and would appreciate some suggestions. We have Books and Inventory working in tandem. We are in Australia, our product is sold in Australia in $A and obviously all our invoices, accounts and reports need to be in
                                                                                                  • Work Orders / Bundle Requests

                                                                                                    Zoho Inventory needs a work order / bundle request system. This record would be analogous to a purchase order in the purchasing workflow or a sales order in the sales cycle. It would be non-journaling, but it would reserve the appropriate inventory of
                                                                                                  • Getting error during inserting a record in form of zoho people using zoho api

                                                                                                    import requests import json # Set your access token and Zoho People API base URL access_token = '1000.XXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX' api_base_url = 'https://people.zoho.in/people/api/' # Set the form name and data to be inserted form_link_name
                                                                                                  • Change script to add fields

                                                                                                    Hi, I have a custom function (writen by a different implementation company in the beginning) which I would like to edit to add a different field as well. Can't get it to work on my own though. - The script now adds the address fields to a new quote (needs
                                                                                                  • 1 API to all channel

                                                                                                    hi zoho team: I am the product manager of anywheel, we are planning to integrate zoho, we want to integrate multiple channels through 1 API, please can you send me the integration document and guideline?
                                                                                                  • Revamped Print in Zoho Sheet—customized for paper

                                                                                                    The latest enhancements to Zoho Sheet's Print settings allows you to print a worksheet or a selected range, with customizations that make the data comprehensible, even on paper.   Customize header and footer Make your spreadsheets meaningful with a relevant header and footer. You can now choose to display the file name, sheet name, current page number, total pages, date, and time as the header and footer in your print view. Besides the predefined elements, you can also give a custom text for header/footer.
                                                                                                  • Adding Bluesky channel

                                                                                                    Hello, Is Bluesky (AT protocol) soon added on Social ? Bluesky is being developped and is now open to anyone (no more invitation) Thank you
                                                                                                  • How Can i put a form in Zobot

                                                                                                    Hi,how can i integrate a form which has a multiple options to choose from.the form should be opened or displayed by zobot after it meets a requirement in the conversation. Thanks in advance !
                                                                                                  • Unified customer portal login

                                                                                                    As I'm a Zoho One subscriber I can provide my customers with portal access to many of the Zoho apps. However, the customer must have a separate login for each app, which may be difficult for them to manage and frustrating as all they understand is that
                                                                                                  • message on click of button

                                                                                                    Hi, i added insert task on 'Quick view' below  'Action'  of report just below 'Delete' button,  so i am trying to add a message on click of button that, "This item is now added into Pending Request" like this .... So, how can i achieve this ; because
                                                                                                  • Is it possible to disable Chat Waiting Time, or to make it indefinite?

                                                                                                    We have used many online chat services over the years. However, Zoho's SalesIQ appears to be the only one we've tried that has a mandatory time limit where we must respond to new customer queries. We are a small business so we have no dedicated staff
                                                                                                  • Is Drawing feature supported in zoho Sheets?

                                                                                                    Is there any option to draw arrows and some basic shapes such as circle , rectangle etc in zoho sheets? if so, can someone help me find it 
                                                                                                  • Access CRM Variables from Formula field

                                                                                                    Is it possible to use a CRM variable (defined in Developer Space -> CRM Variables) in a formula field for calculations ?
                                                                                                  • Client Script: $Client.refresh({ triggerOnLoad: true }); not triggering onLoad Client Scripts

                                                                                                    Hey friends! I'm trying to store a temporary var, refresh the page for the user, then check that temporary var and do some actions. Theoretically using the title's code: $Client.refresh({ triggerOnLoad: true }); should refresh the page and trigger on
                                                                                                  • Super Admin login to delete certain folders and passwords and clearing the trash folder, they are still appearing on my dashboard

                                                                                                    Hi Zoho Team, I need help with an issue I've encountered. Despite using the Super Admin login to delete certain folders and passwords and clearing the trash folder, they are still appearing on my dashboard. I would like to understand why this is happening
                                                                                                  • Pulling Specific Products from Sales Orders in Books to a CRM Record

                                                                                                    We currently process orders directly through our website (woocommerce) as well as through manual sales orders in zoho books. When an order comes through the website, all of the individual products from that order show up in the CRM record of that customer.
                                                                                                  • Automatically add a retainer to every estimate

                                                                                                    Hi all, I've been trying to find a way to automatically add a retainer at a set % to every estimate we create and send. So far I haven't been successful, does anyone know of a way to do this? Thanks,
                                                                                                  • Clear String field based on the value of other field

                                                                                                    Hello everyone, We would like to be able to clear a string field (delete whatever has been written and make it empty) when another field (picklist) is changed to a specific value. While I can empty other types of fields, I noticed that I can't do this
                                                                                                  • Custom Deal Name in Lead Conversion Mapping

                                                                                                    I know there are ways to change the name of a Deal after conversion using a custom function, so no need to repost that information. I would like to see the CRM Improved with Deal Name Customisation and I think the Lead Conversion Mapping page would be
                                                                                                  • Within the Basic KPI component in Analytics, it is impossible to set "next" day range as a filter

                                                                                                    Hi there, I am currently setting up a deal dashboard for the Sales team. While it is possible to filter deal records to show records that were created LAST X days only, it looks like a NEXT X days Closing date filter is not available. Would it be possible
                                                                                                  • Next Page