Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Summary

IT Helpdesk Agent is a Declarative Agent designed to assist employees with IT issues through (a) guided, conversational troubleshooting, (b) outage detection, and ticket creation for escalation – powered through ServiceNow offerings (Knowledge, Catalogue and Tickets).

Goals: IT helpdesk Agent has been created with two key objectives,

  1. Reduce overall number of tickets raised by offering easy-to-follow, self-serve troubleshooting guidance to employees
  2. Improve SLA to ticket resolution by capturing first-level debug information up front, reducing back and forth

Features

This sample illustrates the following concepts:

  • 🧭 Guide employees through common IT issues with conversational, easy-to-follow resolutions that reduce downtime
  • ⚠️ Proactively inform users about service outages, minimizing repeated tickets and unnecessary troubleshooting
  • 💡 Help users self-resolve problems like VPN errors, login failures, password resets, and software installation using relevant resolutions from Service Now
  • 📝 Create service /incident tickets with the correct category and subcategory (auto-classification), a clear summary of the issue, and relevant first-level debug information — reducing back-and-forth and enabling faster, more accurate resolution by IT teams.
  • 🎫 Help users track the status of their support tickets, view recent updates, and stay informed — improving transparency and reducing the need to follow up manually

Contributors

Version history

Version Date Comments
1.0 July 25, 2025 Initial release

Prerequisites

Example Prompts

  1. Help me connect to VPN
image image
  1. I can’t access internal portal
image

Minimal path to awesome

  • Clone this repository (or download this solution as a .ZIP file then unzip it)
  • Open the Agents Toolkit extension and sign in to your Microsoft 365 tenant with Microsoft 365 Copilot
  • Select Preview in Copilot (Edge) from the launch configuration dropdown

Configuration

ServiceNow Plugin Configuration

In your OpenAPI spec appPackage/apiSpecificationFile/openapi.yaml:

  • Update the server URL to point to your ServiceNow instance
image
  • Point authorization, token and refresh urls to your ServiceNow instance
image
  • In your ai-plugin.json (plugin manifest), go to the response_semantics section for each function. This sample comes with basic Adaptive Card views for rich representation. You can further customize the layout and data bindings to create richer, domain-specific views. Ensure all links point to your ServiceNow instance.
image

ServiceNow Authentication Setup

  1. Log into your ServiceNow account and go to Application Registry under System OAuth image image

  2. Create a new registry. Select option “Create an OAuth API endpoint for external clients” image

  3. Add callback URL as https://teams.microsoft.com/api/platform/v1.0/oAuthRedirect. You can leave other settings as defaults or customize it as per your needs. Hit Submit. image

  4. After Submit, your app will show in the list. Click on it to get access to Client secret image

  5. Copy Client ID and Client Secret. You will require it in step 6. image

  6. Setup Microsoft Graph Connector to add ServiceNow knowledge – This will allow agent to provide troubleshooting guidance based on your ServiceNow KB articles. Follow the steps in https://learn.microsoft.com/en-us/microsoftsearch/servicenow-knowledge-connector . After you setup Microsoft Graph Connector to add ServiceNow knowledge, add the connection IDs in the Agent file. image

  7. Add knowledge for incident autoclassification: This step is required if you want Copilot to perform autoclassification of an incident (Category and Subcategory fields) while creating the incident itself by matching issue description with the available choices.

    • Go to Choice Lists under System definition image
    • Click on the filter icon and select Table as the field, and “is” “ incident” as other query parameters to filter out just the choicelists for your incident table. Run the query. image
    • Right click on the table header row and select export option. Select csv format. image
    • Now add this file to your SharePoint folder and copy url of the location. Add the url in your Agent file as knowledge under Capabilities. image
    • Note: All users who you want this Agent to be available should also have access to this file for Copilot to use it during autoclassification.
  8. Provision Key & Secret in Copilot: When provisioning the Declarative Agent via the Teams Toolkit, you’ll be prompted to enter the Client ID (Key) and Client Secret. Use the values from the ServiceNow OAuth app you created. image

Help

We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.

You can try looking at issues related to this sample to see if anybody else is having the same issues.

If you encounter any issues using this sample, create a new issue.

Finally, if you have an idea for improvement, make a suggestion.

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.