Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

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

Not applicable

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

@Community Alums 

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

Not applicable

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.