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

                                                                                                  • Response Violation - Zoho Desk

                                                                                                    Hi Team, I just need an information regarding the zoho desk - Response Violation and how can we avoid the tickets from getting the tickets response violated.
                                                                                                  • How to Replace an Assessment in a Job Opening on Zoho Recruit

                                                                                                    Hi everyone, I’m currently using Zoho Recruit and would like to replace the assessment linked to a specific job opening. I want to remove the existing assessment and add a new one. What is the best way to do this without losing any important data or affecting
                                                                                                  • Updating existing values in a list

                                                                                                    Is it possible to update an existing value in a list? For example if I wanted to append text to an existing string value that I had previously added to a list is that possible? I'm able to extract the existing value (get() function) and append the additional text, but can't find a way to add the new value back to the list in the same index location. One work around I found was to delete the existing list entry and then add the new value, however this changes the index location to the last entry in
                                                                                                  • Host not reachable

                                                                                                    Good morning. I have four mail accounts and they have been working well for years. Now, suddenly, I am unable to send any e-mails from any of them. I allways have this pop-up: Thank you. Regards. Luis Fernández
                                                                                                  • BIN Locations

                                                                                                    Hi, I’m new to Zoho inventory and unless Im missing something, I cannot find BIN locations anywhere in ‘items’? please tell me it’s there somewhere?!? Thanks
                                                                                                  • Zoho Marketing Campaign

                                                                                                    I want a details report of marketing API . which API i can use to get a full flexed detail of email campaign , sms , social media ,and all other campaigns ?
                                                                                                  • Zoho Marketing Automation APIs

                                                                                                    When I want to create New lead in marketing automation , I want to add First Name and Last Name as well along with Email but there is no option like this in API . Can you please give me the API which will fulfill my condition ?
                                                                                                  • Adding Folders in Android App

                                                                                                    Is it possible to create a new email folder within the Zoho Mail Android app?  Or can this only be done from the desktop version of Zoho Mail? Cheers!
                                                                                                  • Collaborative editing of spreadsheets by multiple users simultaneously - Is it really possible?

                                                                                                    I work in a SharePoint 2010/SharePoint Server 2010 environment and we use MS Office 2007(Excel 2007) . I have been trying to create a MS Office document which will allow multiple users to work on a spreadsheet simultaneously. For that I have: 1) Created a excel workbook and published as a workspace as suggested by Andrea Kalli in her link: http://www.wonderhowto.com/how-to-collaborate-files-between-sharepoint-and-office-2007-182172/ 2) Set up and saved the Excel Workbook as "Shared" and made it available
                                                                                                  • Ability for customer to give feedback after receipt of an order

                                                                                                    Is there any way we can receive feedback from customers regarding their order after delivery (other than just an email, obviuosly)? This is not the same as product reviews, as it may concern other points, but would ideally have an inbuilt reference to
                                                                                                  • Issue with EU MArketplace

                                                                                                    Hi It's super frustrating that many CRM / Zoho (whatever) extensions are not available in the EU Market place Example: https://marketplace.zoho.com/app/crm/time-tracker-extension-for-zoho-crm For now, can the team address the extension above, but on the
                                                                                                  • Conversion of functions from Google Spreadsheets

                                                                                                    Hello! I use this formula "=QUERY(ResumoOrdemVencimento!A3:O38;"SELECT A,B,C,D,E,F,G,H,I,J,K,L,M,N,O WHERE C != '' ORDER BY C,G")" in Google Sheets but when importing my spreadsheet into Zoho Sheets the formula was not converted. The QUERY function brings data from another spreadsheet, and then I sort and apply conditional formatting. The order of data will change automatically as I update the source spreadsheet. What Zoho Sheets function is equivalent to QUERY? I have some other spreadsheets to
                                                                                                  • Zoho Books Sandbox environment

                                                                                                    Hello. Is there a free sandbox environment for the developers using Zoho Books API? I am working on the Zoho Books add-on and currently not ready to buy a premium service - maybe later when my add-on will start to bring money. Right now I just need a
                                                                                                  • Zoho Books | Product Updates | November 2024

                                                                                                    Hello users, We are back with exciting new features and enhancements in Zoho Books. From multi-criteria workflows to writing off customer opening balances, discover the new updates designed to make your bookkeeping swift. Attach XRechnung to Invoices
                                                                                                  • Spell check sucks

                                                                                                    Come on guys, it's 2024 and your spell check is completely retarded. You gotta fix it.
                                                                                                  • Signature image logo not displaying in recipient mail clients

                                                                                                    Whenever I send an email to another person the image that forms part of my logo is not displayed just a broken link to: https://mail.zoho.com/mail/ImageSignature?fileName=Email-log.jpg&accountId=47238000000007001&storeName=NN1:-3205531763309921492 I can see the logo because I've got a zoho account and I'm logged on but others without a zoho account can't see it. How do I fix this? Thanks -Martin
                                                                                                  • Sales Order, what are the statuses under Confirmed and Closed

                                                                                                    Hi, I have to build a workflow in Deluge which should be triggered when Sales Order status is Confirmed or Closed. But these 2 states don't exist when you fetch a sales order. Which of the statuses are considered as Confirmed or Closed ? Here is a list
                                                                                                  • Notifications for calendar meetings

                                                                                                    So we have been happy users for a few months now. This is an important problem we face, since I have forgotten meetings already cause of lack of notifications. The problem: I have notifications (email, popup and notifications) set for my calendar by default.
                                                                                                  • Reusuable Sections & Universal Brand Settings

                                                                                                    Zoho Email Campaign setups take longer than other software I've used because it doesn't have reusable sections or universal brand settings (fonts and colors). These enhancements should be added to help us create our campaigns more easily.
                                                                                                  • Blockchain technology

                                                                                                    Blockchain technology is being used to revolutionize accounting and financial reporting. With blockchain, financial transactions are recorded on a decentralized ledger, making tracking transactions and verifying their accuracy easier. This technology
                                                                                                  • Este domínio já está associado a esta conta

                                                                                                    Fui fazer meu cadastro na zoho e quando digitei meu domínio recebi essa mensagem que meu domínio estava associado a uma conta que eu nem faço idéia de quem seja. Como que faço pra resolver isso? Atenciosamente, Anderson Souza.
                                                                                                  • not able to hit inventory api

                                                                                                    when i hit the api with my account keys and the access is provide by the client
                                                                                                  • Remove County field from Customer Address input screen (or allow input to be deleted)

                                                                                                    We are in the USA and have just noticed that there is now a County field in the Customer Address input screen (and maybe other areas of Zoho Books, but this is the one affecting us at the moment). County is not important to our business, and in fact we
                                                                                                  • 553 Relaying disallowed error

                                                                                                    Hi, I am receiving a "553 Relaying disallowed" error when sending emails to my domain email address which I have configured in Zoho. However, I am able to receive emails from my domain email to my gmail account. The SPF and MX entries are all configured
                                                                                                  • !! URGENT My sent mail goes to spam

                                                                                                    I tested a few times and every time I send mail out it goes the recipients spam box.  Why is it marking my mail as spam? please help me ! thanks
                                                                                                  • Event Time Zone in meeting invites are confusing users

                                                                                                    When sending calendar invites to internal and external users, the first section "Event Time Zone" is confusing people and they are automatically declining events. Can this section please be removed??? It already shows the correct time zone next to the
                                                                                                  • Request For Quotation (RFQ) module

                                                                                                    Hello, Do you have any plans to implement a RFQ module in to ZOHO Inventory? I would like to chose items that I require a price for, select a number of different suppliers to e-mail and have them submit there pricing online. I would then like to see a
                                                                                                  • Constant Sync Errors 🙄

                                                                                                    I'm constantly getting sync error notifications with no actual resolution. Also... I have folders and files with a (!) on the cloud icon, indicating it's not accessible. This has also led to the complete loss of certain folders. Like... the go missing!
                                                                                                  • Display your zoho contact name when they call your mobile number

                                                                                                    As per the title If a contact calls the office number, the contacts name shows on mobile as long as I have their contact details registered in my crm. Is there a way that if the contact calls my mobile, their name can be displayed? Currently just their number shows when they call.
                                                                                                  • In Zoho Projects, is there a way to create a folders template under documents that can be used once a project is created?

                                                                                                    We have a specific folder structure that we would like to use that is standard across every project. Instead of having to create this structure every time a project is created, is there a way to create a template for the folders that can be added?
                                                                                                  • javax.mail.authenticationfailedexception 535 authentication failed

                                                                                                    Hi, I am facing 535 authentication failed error when trying to send email from zoho desktop as well as in webmail. Can you suggest to fix this issue,. Regards, Rekha
                                                                                                  • Out of Office not working

                                                                                                    I have set up out of office on zoho mail, however, it does not reply to every mail sent to it. I have tested it by sending several test messages from multiple different email accounts, I will get a response to some of them, but not all of them this is
                                                                                                  • Always display images from this sender – Is this feature available?

                                                                                                    In Zoho mail, I had my "Load external images" setting set to "Ask me", and that's fine. That's the setting I prefer. What's not fine though is I always need to tick "Display now" for each email I get, regardless if I've done that multiple times from several
                                                                                                  • Some emails are not being delivered

                                                                                                    I have this problem where some of my mail just seems to disappear. When I send it, it appears as sent with no mention of any problem, but my recipient never gets it, not even in the Spam folder. Same for receiving, I have a secondary e-mail address, and
                                                                                                  • Unbilled Items Report?

                                                                                                    Hello! Is there any way to display a list of items that remain unbilled, without creating an invoice for each customer to see if the unbilled items box is displayed? ;-) Ben
                                                                                                  • Making Calls Using ZDialer on Zoho Creator Widgets

                                                                                                    The Zdialer Browser Extension does not seem to recognize phone numbers on custom widgets. What is the best way to work around this?
                                                                                                  • ALL sent mails from my zoho email id go to spam

                                                                                                    when we send emails out of Zoho as like Gmail , ALL mails go to spam... more than urgent to get a solution !!!!!!
                                                                                                  • Não consigo enviar e nem receber e-mails

                                                                                                    Estou com problemas pra enviar e receber e-mails. Não consigo enviar (recebo uma mensagem de domínio inválido) e os e-mails que recebo estão voltando. Como devo proceder?
                                                                                                  • Time Field

                                                                                                    Good Day, I have a question, when I save a draft and reload it. Why does the time field format keeps goes from hh:mm to hh:mm:ss? Is there a way I can force it to load to hh:mm only? I have tried example = totime(input.TimeField, "hh:mm") in the -created
                                                                                                  • Receiving email problem

                                                                                                    I can send an email but can't receive from other platform like Gmail
                                                                                                  • Next Page