- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
I'm Forrest Falk, a ServiceNow Certified Master Architect (CMA). This is the second post in a series where I share practical insights from a CMA’s perspective and show how to build a custom skill that suggests a category based on an incident's short description and description. In each post, we will add more to our skill, covering everything from creating it to triggering it with a UI Action on a form to automating it with a flow.
Check out the previous posts in the series below:
- Creating a Custom Skill with Now Assist Skill Kit - Part 1
- Creating a Custom Skill with Now Assist Skill Kit - Part 2
In this post we are going focus on completing our tool node to grab the categories and see if we can get the skill running. We will pick up from where we left off on part 2.
For tool conditions, you can place conditions on when your script will run. I will leave it as always run. Click “Continue”.
You should now see the summary, review your tool and click “Save Changes” if all looks good.
You should now see your “getIncidentCategories” tool above your skill prompt in the tool editor.
Now going back to our prompt you will notice that we still did not have anything for our category input.
Click right after the colon “:” for available categories for incident classification and then click “Insert inputs” again above the prompt on the right.
You will now see a “Tools” section. Click on the arrow “>” next to getIncidentCategories and then click on output. Then click “Save” at the top. You should now see all the inputs correctly inserted into the prompt and blue.
Let’s try running the prompt now with our inputs. Under the prompt click the blue “Run Test” button. A popup will appear and enter in some test data for short description and description. I put an example of spilling coffee on a laptop. Click “Run test”.
You should see a response come back. In my case it returned “Hardware”.
If you check under the tools tab, you should see all the categories that were returned. Note you will have to select the “getIncidentCategories” tool. You should have a similar output, but depending on your data, you may have different categories.
Perfect it seems that our skill is returning values from our tool node. In part 4 we will look to see how we can improve the output with some prompt engineering to give us the results we are looking for.
Continue to part 4 here: Creating a Custom Skill with Now Assist Skill Kit - Part 4
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.