Skills Determination for Advanced Work Assignment question.

If anyone can shed some light on this it would be greatly appreciated as the ServiceNow docs leave much to be desired.

I’ve got my virtual agent convos set up to route to a specific chat queue based the value of a live agent variable. Everything routes to the queue just fine. But I’ve got skills management setup up with my assignment rule and I’m using skills determination which is supposed to automatically attach skills to work items, in this case to the interaction table, so that my assignment rule where mandatory skills are enforced can assign it to the correct agent within the group. The auto assignment isn’t working correctly even though the agents have the correct skills assigned to them.

In the documentation the instructions for creating a skills determination rule says that each new rule you create must have a corresponding business rule, but it gives no examples of what this business rule is supposed to look like. The only instructions it gives is to go to the particular work item table and make an existing business rule active. In this case I went to the interaction table to made skills routing for chat active. It’s still not working correctly.

Any ideas what needs to be done from here or what a corresponding business rule should look like?

Posted Jun 13, 2020, 8:29 PM UTC

23
taggingtechnician•

I've been monitoring your post for answers as I want to know for myself, though I do not yet use virtual agents. Have you opened a ticket with HIWAVE? It may be your fastest path to resolution as this is an advanced-level question (I do not know any colleagues who are using virtual agent yet).

2
TechManMikeOP•

I’ve figured out why it’s not functioning properly and will now be opening a ticket with HI. The issue lies with an OOTB business rule on the interaction table which is supposed to create a record on the interaction_m2m_skill table. The records on this table are what ties a particular chat interaction with a skill so that when the interaction work item is sent to the queue, the assignment rule associated with that queue can route it to the correct agents when skills are enforced on the assignment rule. The issue with the business rule is that it’s supposed to query the context table which stores records for each conversation instance, and grab the value of live agent variables for mandatory and optional skills and then create the records on the skill table for that interaction....but those values aren’t present when the business rule runs, so it comes back undefined. So in a nutshell the values that should be there for the system to determine which skills to assign to the work item aren’t there at runtime.

The kicker is that when you go to the JSON blob table and pull up the context record, all the values are there. So it makes no sense why when those values are query’d for as part of the business rule they are not.

2
taggingtechnician•

Yes, a HIWAVE ticket will result in the fix, I agree. It sounds like a misspelled variable name: at one time I created an object to collect an array of field values from various tables triggered with a before rule, didn't work, case sensitive. Oh yeah, using global variables is helpful - as long as the names are unique. Ah yes, I also had to initialize certain variables within certain scopes, then reset them after each loop. Ugh.

1