How i can show VA to a Grp(eg :- India grp) and live agent to rest

chouhanr
Tera Contributor

Hi All, 

My requirement is I want to show Virtual agent with topics to a group and for rest I want to show only live agent only. 

 

I tried to put script in sp_agent_chat_config but it's not working.

 

(function($sp) {
    c if (gs.getUser().hasRole('admin')) {
         return {
             live_agent_only: true,
             live_agent_queue: $sp.getDisplayValue('sp_chat_queue')
         };
     } else
        return {
            live_agent_only: false,
            live_agent_queue: $sp.getDisplayValue('sp_chat_queue')
        };
})($sp);
 
 
I tried to create two separate==>  sp_agent_chat_config with role based but not working . public one  is overriding the grp one.
2 REPLIES 2

SumanthDosapati
Mega Sage
Mega Sage

@chouhanr 

1. Go to VA designer

2. Open topic, go to properties

3. open the script section and write the script to allow only for particular group.

 

Accept the solution and mark as helpful if it does, to benefit future readers.
Regards,
Sumanth

Control on VA through Topics that I can manage but my requirement is want two separate CHAT bot 
1. Which has only live Agent and when a person click on bot it will directly transfer to live agent.

2. another one what i want is when particular grp try to access VA that grp person will see different welcome message along with Topics.
Screenshot of two different bot.