ServiceNow Automation Using Chrome Extension

I am releasing my Google Chrome extension with tools to automate many ServiceNow ticket tasks.  It is a easily extendable extension in which you can autopopulate and autoroute tickets, automatically refresh your queues, play a sound when a new chat comes in, present hints and tips to agents, and many other features.

Every ServiceNow implementation is different so don’t expect to be able to drop this extension right in. To use it will require modifications specific to your implementation of ServiceNow.  If you understand basic Javascript you should be able to make use of this.  No APIs are used other than what is available in ServiceNow itself.

This tool was developed using the Chrome Developer Tools (Ctrl+Shift+I) to get fields and ids you will need to make the tool work. I do not recommend even attempting to use this unless you are a fairly experienced web developer.

All code is available at my GitHub link at the very top of this web site or click here


I am in no way affiliated with ServiceNow. This is simply a suite of assisting and automation tools I developed when I was an agent for a large multinational corporation that handled thousands of tickets per day. All trademarks and intellectual property are owned solely by ServiceNow. This tool is simply a easy way to fill out some of the fields within the webpage to save agents/technicians a lot of time.

If you attempt to develop your own version of this tool you should use your test environment and not a live server.


  • Ticket Autopopulation – Uses regular expressions (RegEx) to search ticket subject and text for common issues and presents a dialog to populate the ticket based on potential matches
  • Chat notifications (sound and notification bubble) – Pops up a Google Chrome notification bubble when new chats are received and plays a sound
  • Autorefresh & Notifications – Automatically refreshes incident and task lists and pops up a notification bubble when new ones appear
  • One-click Routing – Allows you to put a ticket into the “In Progress” state and send it to a resolver group without filling out any fields (useful for routing to yourself to fill out later or foreign language resolvers)
  • SLA monitoring – Incident list uses color coding going from Green to Orange to Red based on how close to SLA the ticket is
  • Popup Menu – Programmable pop-up menu with quick functions to help agents perform tasks quickly

Getting Started With ServiceNow Automation

You will need to update the URLs in the manifest and the files. By default they are If you do not update the manifest before creating a Google extension Google will not run the code on any of the pages as the correct URLs are required in the manifest for any code to execute.

Once you have made that change you will need to install the extension in your Chrome browser.  There are lots of good instructions online on how to do this.  I recommend starting at Google’s own tutorials here if you have never developed a Chrome extension before.

Now it’s time to head to your ServiceNow implementation.  Again I highly recommend using your company’s test environment to avoid causing any production issues.

Autorouting in ServiceNow with RegEx

To handle the most common tickets we use regular expressions to search the tickets for common issues. This is done in an array located in autoroute.js. Here is an example:

    RegEx: ".*\\b(BOX|APP-BOX.COM|APP-BOX|BOX.COM)\\b.*",
    CI: "Box External File Sharing-PROD",
    Resolver: "APP-BOX.COM",
    Category: "application",
    SubCategory: "enterprise",
    SubCategoryType: "configure",
    INCCategory: "application",
    INCSubCategory: "configuration_error_single",
    INCSubCategoryType: "other_single",
    KB: "Attached Knowledge article:  [code]<a href='https://*'>KB0018582</a>[/code]"
    Notice: "All Box issues should go to the Box resolver group"
    Label: "Box File Sharing Service"

In this example we are looking for tickets submitted about the popular Box file sharing service. The first line is the RegEx line and looks for Box, App-Box,, etc. You can search for as many keywords as you want to.  You may also use more advanced regular expressions to get extremely accurate and tailored results.

Usage – How to use the ServiceNow Chrome extension

When you open up a ticket the extension will search the ticket.  Then it will present possible matches at the top as bubbles. The agent/technician can then click the correct bubble. The agent can fill out the ticket the old fashioned way if no matches are found.

If a bubble is pressed the following actions occur:

  • The Configuration Item (CI) is automatically populated
  • All categories and subcategories are selected
  • The relevant KB article is attached
  • The ticket is presented to the agent for review
  • Nothing is saved until you submit the ticket providing the opportunity to ensure everything has populated correctly

You may also use the optional “Notice” and “Label” fields.  These allow the extension to provide specific labeling and instructions to the technician to help reduce routing errors.

That’s about it!  Let me know if you have any questions and I will try my best to answer them for you.

Leave a Comment

Your email address will not be published. Required fields are marked *

Type here..