Plug Sample #10 - Simplify Ticket Management (Zoho Desk) with Chatbots

Plug Sample #10 - Simplify Ticket Management (Zoho Desk) with Chatbots

Hi everyone! 

We're here with another simple yet effective plug for your chatbot to integrate with Zoho Desk. 

When a customer reports an issue/request during chat, it's logged as a ticket on Desk. When they return for updates, you end up searching through past tickets, reading conversations, and updating them manually. Imagine if your bot could automate this, retrieving ticket details and providing updates effortlessly.


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

SalesIQ offers chatbots to automate customer interactions. Using the Codeless bot builder, you can build chatbots by using cards in the bot-builder gallery. However, at times, businesses would require unique actions from the bot and for those instances, we have plugs. With plugs, you can create any specific action and bring it as a card inside the codeless bot builder, like the rest of the cards. 

In this post, we will learn how to create a plug and list the customer's recent support tickets from Zoho desk.

How does this Plug work?
  • The bot will get the email address of the visitor (Email card)
  • Next, the bot will search and get a list of tickets associated with the respective email from Desk (Plug 1). 
  • Then, this ticket list will be displayed to the visitor (Single choice card). 
  • When the visitor selects one of the displayed tickets, the bot will fetch the neccessary ticket details. (Plug 2)
  • And these details will be displayed to the visitor (Any response/input card).

Note:
  • There are two plugs involved in this process, one is to display the ticket list and another is to display the ticket details. 
  • In this post, we will look at the plug to display the ticket list. 
  • The plug sample to display the ticket details is already available, click here to know more. 

Plug output
 


How to build this Plug?

Step 1 - Create connection with Zoho Desk
  • On 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.
    • Desk.search.READ
    • Desk.contacts.READ
    • Desk.tickets.READ

Note: The Connection Link Name will be used in the scripts to invoke URL tasks.
  • Click on Create And Connect to connect Zoho SalesIQ and Zoho Desk.

  • Upon successful authentication,  Zoho SalesIQ will be connected with Zoho Desk.

  • The connection is successfully established. 

Step 2 - Build the Plug

As we have created a connection between SalesIQ and Desk successfully, it's time to build the plug. The first step in building the plug is defining the parameters. 

Input Parameters
  • Name : email | Type : Email
Output Parameters
  • Name : ticketList | Type : Option List


Script to get the list of tickets
  • Copy the code below and paste it into your plug builder. Then, make the following changes. 
  • In line #8, get your Desk org ID (Settings > Developer Space > API > Scroll down to find the "OrgId").
  1. if(session.containsKey("email"))
  2. {
  3. email = session.get("email").get("value");
  4. }
  5. // Getting the contact ID from the email - https://desk.zoho.com/DeskAPIDocument#Search#Search_SearchContacts
  6. url = "https://desk.zoho.com/api/v1/contacts/search?email=" + email;
  7. header = Map();
  8. header.put("orgId","012345");
  9. //Change your org ID (Settings > Developer Space > API > Scroll down > "OrgId")
  10. getcontact = invokeurl
  11. [
  12. url :url
  13. type :GET
  14. headers:header
  15. connection:"zohodesk3"
  16. ];
  17. info getcontact;
  18. contact_id = getcontact.get("data").getJSON("id");
  19. info contact_id;
  20. url_ticket = "https://desk.zoho.com/api/v1/contacts/" + contact_id + "/tickets?sortBy=-createdTime&limit=3";
  21. // Get associate ticket of a contact - https://desk.zoho.com/DeskAPIDocument#Contacts#Contacts_ListContactsByIds
  22. get_tickets = invokeurl
  23. [
  24. url :url_ticket
  25. type :GET
  26. headers:header
  27. connection:"zohodesk3"
  28. ];
  29. info get_tickets;
  30. array = get_tickets.get("data");
  31. optionList = List();
  32. for each  entry in array
  33. {
  34. subject = entry.get("subject");
  35. status = entry.get("status");
  36. display_text = subject + " - (" + status + ")";
  37. ticketNumber = entry.get("ticketNumber");
  38. optionList.add({"id":ticketNumber,"text":display_text});
  39. }
  40. response = Map();
  41. response.put("ticketList",optionList);
  42. return response;
  • Then, click Save, preview the plug and Publish it. 
 
Step 3 - Adding the plug to the Codeless bot builder
  • Navigate to Settings > Bot > Add, provide the necessary information, and select Codeless Bot as the bot platform. You can also open an existing bot.
  • 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.
  • Choose the %visitor.email% variable for the name.
  • Provide a variable name for the ticket list.

  • Use a single choice card, click on Save in bot context, give a variable name and select the context variable under dynamic suggestion

  • Then, use this plug to show the ticket details.


I hope this was helpful. Please feel free to comment if you have any questions. I'll be happy to help you. 



Best regards
Sasidar Thandapani

    Nederlandse Hulpbronnen


      • Recent Topics

      • Zoho forms with iframe and Javascript embedding not working

        I have integrated zoho forms with iframe and Javascript embedding in my Ruby on Rails application.There is problem form action are not working on clcik on just Chrome browser mobile view ,it's working on Firefox and others.So, what is the solution of
      • Agentes Zia en Zoho CRM: ¿Qué son los agentes de IA?

        Los agentes de IA son entidades digitales autónomas impulsadas por inteligencia artificial que pueden actuar de forma similar a un empleado humano. Los chatbots convencionales y la IA generativa pueden proporcionar información o redactar contenido, y
      • [Free webinar] Creator Tech Connect - Zoho Creator product updates, July 2026

        Hello everyone, We’re excited to invite you to another edition of the Creator Tech Connect webinar. About Creator Tech Connect The Creator Tech Connect series is a free monthly webinar comprised of pure technical sessions, where we dive deep into the
      • What's New in Zoho POS - June 2026

        Hello everyone, Welcome to Zoho POS’s monthly update, where we share our latest feature updates, enhancements, events, and more. Let’s take a look at how June went. Zoho POS for macOS We are excited to announce that we extended our front end billing application
      • Different languages for users

        Hello, Do you plan to enable individual users to select their languages for interface? Currently language can be changed for everyone - it looks like a settings for a whole portal, which is not good when you are working internationally. Best regards,
      • People 5.0 widget and API questions

        While creating Widget for People 5 I found couple issues that I can’t find answer on my own: 1) How to get leave requests according to this API https://www.zoho.com/people/api/get-records-v2.html. I tried: requestData = { "url": "https://people.zoho.eu/api/v2/leavetracker/leaves/records",
      • Integration with existing websites

        So most companies have existing websites. They want to integrate an online store with their existing site. How is that possible in zoho commerce please.
      • How to Fix the Corrupted Outlook 2019 .pst file on Windows safely?

        There are multiple reasons to get corrupted PST files (due to a power failure, system crash, or forced shutdown) and several other reasons. If You are using this ScanePST.EXE Microsoft inbuilt recovery tool, it only supports the minor corruption issue
      • What's New in the Trips Experience

        We've redesigned the Trips module to make trip management simpler and more intuitive. Here's a quick look at what's changed. Simplified Trip Creation and Itinerary Management Flexible Trip Creation: You can now create and save a trip without adding itineraries
      • Mise à jour de Zoho Books – France

        Chers clients, Merci pour votre patience et votre soutien continu. Avec les évolutions réglementaires à venir en France nous introduisons de nouvelles fonctionnalités dans Zoho Books pour les clients français. Ces mises à jour ont été conçues pour répondre
      • [Important update] : Shopify migrating from REST API to GraphQL API

        Dear Shopify integrated users, As part of enhancements, Shopify has deprecated the REST API access and all the integrated apps must comply with the new GraphQL API. Fore more details, visit : https://shopify.dev/docs/api/admin-rest/latest/resources/order#resource-object
      • Feature request - export as video

        Export presentation as video. I think that it would be super useful for many users. Thanks
      • Export as MP4 or GIF

        Hi, Just wondering if there's a way to export/convert a presentation to an MP4 video file or even a GIF. One use case would be to use the animation functionality to create social media graphics/charts/gifs/videos. Thanks for a great tool... Rgds Jon
      • Stage Transition Rules prevent moving deals to other pipelines

        I have rules in place when moving deals to lost or win to ensure some particular fields are updated to ensure accuracy. However these rules are preventing me from moving deals to other pipelines. I'm having to delete the rules, move deals, then set rules
      • Can't send email using template. Email address has been blocked error.

        Hi. I'm setting up a new Zoho CRM account and doing our first customizations. While testing the email templates to use during blueprint transitions, I always get this error: "Sorry! Email address has been blocked." Any ideas? Thanks. Bruno
      • unify organisation management

        As I am exploring different Zoho products (such as Workplace, CRM, Books, Contracts, Projects), I am noticing that there is no unified and streamlined organisation management. You can define different parameters for the same organisation (e.g. base currency)
      • Cannot Send Outgoing Mails on TeamInbox Reason:554 5.1.8

        Hello, I am receiving this error when trying to send emails from TeamInbox: Error while processing the request! Unable to send message;Reason:554 5.1.8 Email Could not be delivered for policy reasons. Does anyone know how I can solve this issue? Thank
      • Bring more clarity to your blueprints with color-coded transitions

        As your hiring processes evolve, blueprints naturally become more detailed. When multiple transitions connect different stages, it can take extra effort to identify approvals, rejections, reviews, and other actions at a glance. With this enhancement,
      • MARKED AS SOLVED BUT ISN'T SOLVED - Unable to Send Outgoing Messages in Android Cliq App

        Every time when an outgoing message in the android cliq app is sent it will look like it successfully sent, but when you check the message it just has an error exclamation point icon next it and has option to resend or delete the message. When the resend
      • Canvas and calendar

        Is it possible to have a canvas view that shows say a contacts details with the meetings calendar on the same page?
      • Free webinar: Zoho Sign in Q2 2026 - A quick walkthrough

        Hi there, The second quarter of 2026 has flown by, and the Zoho Sign team has been hard at work releasing features to enhance how you send, sign, and manage documents. Join us for our upcoming webinar, where we'll discuss what's new and what's to come.
      • Zoho Marketing Automation WhatsApp Campaign Import Sync for Zoho Analytics

        WhatsApp is a critical channel in modern marketing, yet WhatsApp Campaign metrics from Zoho Marketing Automation currently cannot be natively imported into Zoho Analytics via the default advanced analytics connector. Integrating this into the standard
      • 【Zoho CRM】アップデートのお知らせ:ミラー要素

        ユーザーの皆さま、こんにちは。コミュニティグループの中野です。 Zoho CRMに新しいフィールド機能「ミラーの要素」が追加されましたのでご紹介します。 これにより、別タブにある項目の値をリアルタイムで表示できるようになりました。 目次 1. ミラーの要素とは 2. ミラーの要素とルックアップ項目の連動項目の比較 ― どちらをいつ使うべきか 3. 適用範囲と制限事項 1. ミラーの要素とは これまで、別タブにある項目の値を引っ張ってくるには、カスタム関数やワークフローを使った値の更新が必要でした。
      • Generate payment links to collect your payments from Android

        Hello everyone! We're happy to announce that users can now generate payment links from their Bigin mobile app to collect payments from customers. This will help them manage their payments more efficiently, as payment records are linked to the pipeline
      • Introducing the Image Slider field: Multiple images, one clean carousel

        Hey everyone, Some context is best communicated visually. When you are offering a service, a written description rarely does enough work on its own. People want to see what they are signing up for before they book or pay. When you are selling a product
      • Online PDF Editor

        Hello Team, There is a small glitch i found when i was using your online software called "PDF Editor", There is a menu bar on right side comes when we click on 3 dots for any pdf, but that entire menu has no options to choose, that is totally blank, please
      • How to migrate emails from Amazon Work Mail?

        Hi, I've an account with Amazon Work Mail, I'd like to migrate emails from Amazon Work Mail to Zoho Mail. Can you guide me? Regards, Mahendran
      • IP Address List > Sigma

        We have developed a ZohoCRM extension that utilizes API calls to our server from Deluge scripts and Widgets. Our API server has IP restrictions in place. To ensure successful communication, we require a list of IP addresses utilized by Zoho's platform
      • steps and options to change Domain DNS/Nameservers settings

        Please share the options or steps to change  Domain DNS/Nameservers settings 
      • Zoho Contacts *Web Interface Does Not Load* (Tested in Firefox, Safari)

        The error shown in the console is: The resource from “https://static.zohocdn.com/zmail/zm/newContactsChange11/js/main.js” was blocked due to MIME type (“application/json”) mismatch (X-Content-Type-Options: nosniff). This should be fairly self-explanatory,
      • Moving over to commerce but shipping

        In our company we love zoho onebut currently use ECWID for our online shop which is annoying as it requires double entering invoices. our requirements are that we do local deliveries limited by postcode -these are free. we also allow pickup they get a
      • Product sorting in Zoho Commerce - how can I influence standard behaviour?

        Hello Zoho, I want to sort my products by e.g. name, SKU (Ascending / Descending) or by another attribute. I could neither find any solution in the settings, nor an entry in this help. Can you advice how this would work? Seems the standard sorting is
      • Journey vs Campaign Confusions

        Hi there! I hope you're all doing great! I'm new to the Zoho MA and I'm confused between Journey and Campaigns. I'm not sure if these two work together or not. I hope you can enlighten me. What I'm trying to do is setting up a Newsletter. 1. We have a
      • Survey questions inside email template

        We have a Net Promoter Score survey.  It is 3 questions only. When the deal is closed we need to send an email to a customer asking them these 3 questions. Currently, the only option I can find is to give a customer a link to survey. What we need is to
      • No DINAR (Serbia) in currency list

        There is no Serbian Dinar listed in the currency list. Dinar is available in Books, Inventory, CRM, FSM. Please make it available in Desk as well. Without it, the integration with other apps is not possible.
      • #18 Money in the Bank Doesn't Mean Your Books Are Upto Date

        Many businesses have experienced this. A customer transfers the payment. You check your bank account and see the money has arrived. A week later, while reviewing outstanding invoices, you realize the same invoice is still marked "Unpaid." The payment
      • "Print" option of GET Expense Report API not working

        Hello! I have been trying to use the "print" option of the GET Expense Report API but it seems the option does not alter the output. Is there an issue with the API or am I using it wrong? Here's my request code, in Deluge: response = invokeurl [ url :"https://www.zohoapis.com/expense/v1/expensereports/"
      • Enhance form structure with the Heading field

        Hello form builders, A form without structure creates cognitive load. When respondents can see where one section ends and where another begins, they move through the form with less friction and more confidence. This is the reason we have introduced Heading
      • Canva Integration

        Hello! As many marketing departments are streamlining their teams, many have begun utilizing Canva for all design mockups and approvals prior to its integration into Marketing automation software. While Zoho Social has this integration already accomplished,
      • Zoho Books - Feature Request - Improve Online Payment Badges

        Hi Finanace Suite Team, I use Stripe to facilitate online payments and I often have customers who don't notice the online payment option on the invoice. The below example shows how a stripe payment link appears on the invoice. In this example you can
      • Next Page