Agent Chat default topic only applies on the first run
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2022 06:31 AM
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?
- Labels:
-
Agent Chat
-
Virtual Agent

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2022 08:41 AM
Another approach, albeit heavy-handed, would be to configure your desired topic to be the "Greetings" topic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2022 01:35 PM
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.