Virtual Agent Experiences: Restrict Access to Department or User Criteria?

Steven6668492
Tera Contributor

Greetings!

 

We have created various Virtual Agent Experiences in Conversational Interfaces, and we would like to have those specific experiences appear for specific users, based on User Criteria (ideal) or Department name (second choice, but will work). Although I haven't found a solution that will work yet, we have been able to demonstrate the concept using Groups, by using the following script on the Custom Greetings and Setups in CI (or on the sys_cs_context_profile record):

 

(function execute() {
    if (gs.getUser().isMemberOf('<Group Name Here>')) {
        return true;
    } else {
        return false;
    }
})();

 

Is there a way to achieve something similar using User Criteria, or basing access on department name?

0 REPLIES 0