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
Settings>Developers>Plugs>
Click on
Add
.
-
Provide your Plug a name, description, select the Platform as
SalesIQ Scripts
, and click on
Create Plug
.
-
Click on Parameters, provide the following,
1. Input Parameters
: Ticket Number |
Data Type
: Number
2.
Output Parameters
: Status of the ticket |
Data Type
: String
-
Copy, paste the below code and change your Zoho Desk Organisation ID and Connection name.
-
//Change your Zoho Desk organization ID
-
orgId =
12345
;
-
ticketnumber = "";
-
if(session.containsKey("ticketnumber"))
-
{
-
ticketnumber = session.get("ticketnumber").get("value");
-
}
-
searchQuery = Map();
-
searchQuery.put("ticketNumber",ticketnumber);
-
//zohodesk3 - Connection name
-
ticketstatus = zoho.desk.searchRecords(orgId,"tickets",searchQuery,0,1,"
zohodesk3
");
-
status = "Invalid ticket number";
-
if(!ticketstatus.isEmpty() && ticketstatus.containKey("data"))
-
{
-
status = ticketstatus.get("data").toMap().get("status");
-
}
-
response = Map();
-
response.put("status",status);
-
return response;
-
Then, click
Save
, preview the plug and
Publish
it.
-
Navigate to
Settings>Bot>Add
and give the necessary informations and select
Codeless Bot
as bot platform or open an existing bot.
-
Select the
Plugs
block under
Action Block
and select the required Plug (The plugs published will be listed here)
-
Provide the
Plug inputs
(values to be obtained from the visitors) and
outputs
(value to be given for the visitors).
-
In this case,
ticket.id
is the bot context that stores ticket number obtained from the visitors and
status.check
is the status to be shown to the visitor.
Note:
-
Create a visitors fields to get
ticket ID
from the visitor and save the values in
context variable
for plugs input.
-
Similarly create a
context variable
to store the status of the ticket and use this to
display the status
to the visitors.
Related Links:
Sticky Posts
Why should you integrate Zoho SalesIQ with Google Analytics?
Hello everyone. Greetings from Zoho SalesIQ! Today, we are going to take a detailed look at the possibilities and outcomes when integrating SalesIQ with Google Analytics. Some of us may have lingering questions on this topic and here we are, with a
Engage and support visitors better with all new Zoho SalesIQ V2.0!
By Addressing more than 120+ customer requests, adding 23 new features, 27 feature enhancements, and including 4 custom tools; we are finally ready and thrilled to introduce our new version of Zoho SalesIQ that takes your visitor engagement, sales, support
Webinar alert! - Take engagement to the next level with the SalesIQ Mobile app
In the era of WFH, working time flexibility is reaching its breaking point, where household chores overlap our work hours, where we engage with customers from the comfort of our bed with the TV playing in the background. It is necessary to provide the
Instant contextual support on the go! - SalesIQ Mobile App
Providing effective support is often considered more important than providing instant support. Hence, to provide the best engagement, most of the support and engagement tools require operators to be using a desktop or a laptop. A bigger screen can be
How to nurture leads, manage contacts and grow your B2B business with SalesIQ?
Zoho SalesIQ is one of the most powerful support tools in the industry and is preferred by millions of customers. SalesIQ is used to acquire leads across various sectors and automate your workflows. The all-new SalesIQ brings more power to your business
Zoho Pagesense Resources
Zoho SalesIQ 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
Qntrl Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.