Zia Agents

Zia Agents are AI-powered assistants that understand user queries, retrieve relevant information, and assist with actions. You can customize agents for your organization by configuring the required knowledge base articles and tools. These configurations define what information an agent can access, which service desk events it can observe, and how it will respond to user queries.

Zia Agents can be accessed through Ask Zia, the conversational bot.

Benefits

Optimize service desk operations by reducing manual effort for technicians, improving response accuracy, and enabling faster issue resolution.

Role Required: SDAdmins

Quick Links

 

Create Agents

Enable Custom Agents

  1. Go to Setup > Zia > Agents.

  2. If you are accessing for the first time, click Create Agents.

 

  1. Otherwise, enable Custom Agents and click Manage Agents.

You will be directed to the Zia Agent Studio.

Prerequisites

Before creating an agent, configure the following:

Tools

Tools are APIs that allow agents to perform specific actions.

 

Knowledge Base

The knowledge Base is a centralized repository of articles, FAQs, and documents that agents use to respond and take action.

 

Multi Agents  

Multi Agent allows you to connect multiple agents to execute complex, multi-step workflows. Click + Multi Agent to create and configure a coordinated agent group.

The screenshot shows the Helpdesk Coach Orchestrator agent, which evaluates technician's performance on service desk tickets. It works with two sub-agents: Helpdesk Coach to analyze tickets and generate feedback, and Feedback Note Poster to add the feedback as an internal note to the request.

Store

Store provides a catalog of ready-to-use agents for common business scenarios such as email sorting, lead management, ticket routing, recruitment, and more.

You can browse agents by category, filter them by rating, or search for specific agents. Click any agent to view its details and add it to your account.

 

Agent Studio

Agents can be created manually from scratch or with assistance from Zia AI.

 

Create Agents From Scratch

 

Basic Information

Provide the following details:

 

Knowledge Base

 

 

Tools

 

Additional Settings

 

 

Create Agents with Zia AI

 

 

Deploy Agents

Deployed agents are available under Setup > Zia > Agents.

 

Configure Agent Accessibility

After deployment, configure who can access each agent.

  1. Go to Setup > Zia > Agents.

  2. Use the toggle to enable or disable the agent for technicians and requesters.

  3. When enabled, the agent is available to all technicians and requesters, by default.

  4. To restrict access:

 

 

List View Operations

 

 

Access Zia Agents

You can access Zia Agents from Ask Zia or via custom triggers.

Ask Zia

Interact with agents through the conversational bot. To do this,

 

Ask Zia executes the requested action by using Zia Agents.

Custom Triggers

 Create a custom function by using the Agent API details and execute it through a trigger. Click here to learn more.

Use Cases

Use Case 1: PIR Generator Agent

Creating post-incident reports (PIR) for major incidents can be time-consuming. The PIR Generator Agent simplifies this by automatically generating a structured report from a ServiceDesk Plus ticket by using the ticket ID.

The agent fetches ticket details and produces a comprehensive report covering the incident summary, timeline, root cause analysis, impact assessment, action items, and lessons learned.

Configure the PIR Generator Agent

Here are the step-by-step instructions to configure the PIR Generator Agent.  

Prerequisites

Before creating the agent, configure the following tools in Zia Agent Studio:

Tool

Purpose

GetTicketID

Retrieves the internal ticket ID from the display ID provided by the user.

getTicketDetails

Retrieves complete ticket details by using the internal ticket ID.

 

Create YAML files and add the following APIs to fetch the ticket ID and ticket details.

GetTicketID API

openapi: 3.0.1
info:
  title: Get Ticket Id
  description: >
    Retrieves requests using search criteria. To search by display_id:
    take the user-provided display_id value and construct the input_data
    query parameter as a JSON string.
  version: 1.0.0
servers:
  - url: https://sdpondemand.manageengine.com
    description: Production Server
security:
  - OAuth2:
      - SDPOnDemand.requests.ALL
paths:
  /app/{portal}/api/v3/requests:
    get:
      summary: Get Ticket Id
      operationId: GetTicketID
      parameters:
        - name: portal
          in: path
          required: true
          schema:
            type: string
        - name: input_data
          in: query
          description: >
            A JSON string containing list_info with search_criteria.
          required: true
          schema:
            type: string
            example: '{"list_info":{"search_criteria":[{"field":"display_id","condition":"is","value":"1042"}]}}'
      responses:
        "200":
          description: Requests retrieved successfully.

 

GetTicketDetails API

openapi: 3.0.1
info:
  title: Get Complete Ticket Details
  description: >
    Retrieves complete details of a request/ticket using its internal ticket ID.
    This is NOT the display_id shown to users.
  version: 1.0.0
servers:
  - url: https://haarvi.sdpondemand.manageengine.com
    description: Production Server
security:
  - OAuth2:
      - SDPOnDemand.requests.ALL
paths:
  /api/v3/requests/{ticket_id}:
    get:
      summary: Get Complete Ticket Details
      operationId: getTicketDetails
      parameters:
        - name: ticket_id
          in: path
          description: The internal numeric ID of the ticket (e.g. 106556000006930024)
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Ticket details retrieved successfully

Create Tools

  1. Go to Tools.

  2. Click New Tool Group.

  3. Provide name for the tool group.

  4. Under Schema, select Predefined Service and upload the YAML files.

Create the Agent

  1. Go to Setup > Zia > Agents.

  2. Enable Custom Agents and click Manage Agents. You are directed to the Zia Agent Studio.

  3. Click Create From Scratch.

Basic Information

 

Field

Value

Agent Name

PIR Generator

Agent Description

Generate a post-incident report from the ticket data

Model Configuration

Zoho

Model

Qwen Text 30b MOE

Agent Role

PIR Generation Specialist

Agent Instructions

Instructions to guide the agent are provided in the PDF.
Copy and paste them into the Agent Instructions field.

 

Knowledge Base

Upload relevant knowledge base articles to guide the agent. Click Continue.

Tools

 

Additional Settings

The PIR Generator agent is now ready to use.

How to Use the PIR Generator Agent

  1. Go to Ask Zia.

  2. Click Zia Agents.

  3. Provide the instruction to generate PIR.

For example:

  1. The agent fetches the ticket details and generates the PIR automatically.

PIR Output

The generated report includes the following sections:

Section

Description

Incident Summary

Overview of the incident, including subject, category, priority, and status

Timeline

Chronological sequence of events from detection to resolution

Root Cause Analysis

Underlying cause of the incident based on ticket data

Contributing Factors

Factors that amplified the incident

Impact Assessment

Incident duration, affected users or services, and SLA breach status

What Went Well

Positive aspects such as detection speed and response coordination

What Needs Improvement

Gaps in detection, escalation, or process failure

Action Items

Follow-up tasks derived from the resolution and ticket data

Lessons Learned

Takeaways to improve future incident response


If ticket summary is unavailable in the ticket, the agent generates the PIR by using the remaining available data.

 

Use Case 2: L1 ServiceDesk Specialist Agent Triggered Via Custom Function

Analyzing and resolving incoming tickets manually can be time-consuming and may delay response times. The L1 ServiceDesk Specialist Agent helps address this by automating ticket classification, searching the knowledge base for relevant solutions, applying resolutions, and notifying the requester without manual intervention.

This agent can be invoked by using a custom function and executing it through a Request Custom Trigger on the Request Created event.

Follow the instructions given below and use the code snippets as directed to build the L1 ServiceDesk Specialist Agent.

Tools Used

Tool

Purpose

getRequestPriorityList

Retrieves available priorities for the request

getRequestCategoryList

Retrieves available categories for the request

updateRequestFields

Updates the priority, category, or status of the request

searchSolutions

Searches the knowledge base for a solution matching the ticket subject

addResolutionToRequest

Adds the matched solution as the ticket resolution

sendRequestNotification

Sends a resolution email to the requester

Prerequisites

Before creating the agent, configure the following tools in Zia Agent Studio:

Create Tools

  1. Go to Tools.

  2. Click New Tool Group.

  3. Provide a name for the tool group.

  4. Under Schema, upload the tools in the YAML file format.

Note: Copy the code snippets given in the PDF and add them to your YAML files.

Create the Agent

  1. Go to Setup > Zia > Agents.

  2. Enable Custom Agents and click Manage Agents. You will be directed to the Zia Agent Studio.

  3. Click Create From Scratch.

Basic Information

 

Field

Value

Agent Name

L1 ServiceDesk Specialist

Agent Description

Automatically classify, resolve, and notify requesters for incoming tickets

Model Configuration

Zoho

Model

Qwen Text 30b MOE

Agent Role

L1 ServiceDesk Specialist

Agent Instructions

Instructions to guide the agent are provided in the PDF.
Copy and paste them into the Agent Instructions field.

 

 

Knowledge Base

Upload relevant knowledge base articles to guide the agent's responses. Click Continue.

Tools

  1. Click Add Tools.

  2. Select all six tools configured in the prerequisites.

  3. Click Continue.

 

Additional Settings

Review the configuration and click Create.

Configure the Custom Function and Trigger

Get Agent API

After deploying the agent, retrieve the Agent API URL from the Integrate tab in Zia Agent Studio.

  1. Open the agent in Zia Agent Studio.

  2. Click the Integrate tab.

  3. Under Developer Interface, select Agent API.

  4. Copy the Endpoint URL.

Use this URL in a Deluge custom function to invoke the agent. The custom function must:

Custom Function

Use the custom function given in the PDF to execute the L1 support specialist agent.

After creating the custom function, execute it through a request custom trigger configured for the Request Created event.

How It Works

When a request is created, the agent performs the following steps automatically:

  1. Fetches the available priorities and categories for the request.

  2. Assigns the appropriate priority and category based on the ticket subject.

  3. Searches the knowledge base for a matching solution.

  4. Adds the ticket resolution as a conversation and marks the request as Resolved.

  5. Sends a resolution email notification to the requester.

If no matching solution is found, the ticket is classified but left open for manual resolution by a technician.