Agent Chat default topic only applies on the first run

Thomas Walker2
Tera Guru

I'm using the sysparm_default_topic parameter in my service portal agent chat configuration.

(function($sp) {
    return {
        live_agent_queue: $sp.getDisplayValue('sp_chat_queue'),
        default_topic: 'f3c4654a1bea05107f3120a8ec4bcb0b'
        };
})($sp);

It works great on the first run of the chat, but once the chat restarts, for instance if the user finishes their first interaction and starts another, the chat does the default greeting instead of the specified topic. Same behavior for the sysparm_topic parameter.

I looked into this solution by Mark, but looping topics isn't ideal for my use case and the sysparm_topic parameter adds [PREVIEW] messages to the chat and isn't advised for use outside of preview mode

Any advice for forcing a topic consistently in a service portal agent chat or advice for different ways to achieve this functionality?

2 REPLIES 2

Victor Chen
ServiceNow Employee
ServiceNow Employee

Another approach, albeit heavy-handed, would be to configure your desired topic to be the "Greetings" topic. 

The issue I have with that is that different greetings for different portals is another requirement, although I definitely considered that. Thanks for the suggestion.