Plug Sample #1 : Fetch ticket status from Zoho Desk on Codeless bot!
Hi everyone, Good to see you.
Are you using the Codeless bot platform for building your bot? Did you know that plugs are exclusively made for performing customized actions on Codeless bot?
Here is a simple plug for fetching the status of the ticket from Zoho Desk. This plug can get the ticket ID from the visitor and update them with the status of their ticket. You can do slight customization to the script and use it. Let's know how to create and use this plug in real time.
How to Create this Plugs?
In your SalesIQ Dashboard, navigate to
Provide your Plug a name, description, select the Platform as
, and click on
Click on Parameters, provide the following,
1. Input Parameters
: Ticket Number |
: Status of the ticket |
Copy, paste the below code and change your Zoho Desk Organisation ID and Connection name.
//Change your Zoho Desk organization ID
ticketnumber = "";
ticketnumber = session.get("ticketnumber").get("value");
searchQuery = Map();
//zohodesk3 - Connection name
ticketstatus = zoho.desk.searchRecords(orgId,"tickets",searchQuery,0,1,"
status = "Invalid ticket number";
if(!ticketstatus.isEmpty() && ticketstatus.containKey("data"))
status = ticketstatus.get("data").toMap().get("status");
response = Map();
, preview the plug and
and give the necessary informations and select
as bot platform or open an existing bot.
and select the required Plug (The plugs published will be listed here)
(values to be obtained from the visitors) and
(value to be given for the visitors).
In this case,
is the bot context that stores ticket number obtained from the visitors and
is the status to be shown to the visitor.
Create a visitors fields to get
from the visitor and save the values in
for plugs input.
Similarly create a
to store the status of the ticket and use this to
display the status
to the visitors.
Zoho SalesIQ Resources
Zoho Pagesense Resources
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Desk Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.