Virtual Agent Topic Block - Microsoft 365 Support Topic Block

Brookie
Tera Contributor

Hi I'm working in Virtual Agent and using the Topic Block "Microsoft 365 Support Topic Block" for a few topics

 

There is a label in there called 'go back to search' which as a value of irrelevant.

 

I would love to change this label to either 'go back' or 'next' or 'i need more help'

Whenever I change the lael it breaks the search function entirely for microsoft.

I've tried a million different things and it doesn't work.

Is there a way to change this label?

 

Everything on the topic block appears to be done on the value so I have no idea why I can't change it

Even duplicating the topic block and changing it fails to work

 

Can it be done?

If so how

The current script is

 

(function execute() {
var _logData = {"client_appname": vaVars.appName};
try
{
vaVars.nonBranchingContent = '';
var _options = [];
var _staticChoices = JSON.parse(vaVars.staticChoices);

for (var index = 0; index < _staticChoices.length; index++)
{
var _text = _staticChoices[index].text;
_options.push({ 'value': _text.content, 'label': gs.getMessageLang(_text.content, vaContext.getRequesterLang()), 'render_style': 'data' });
}

_options.push({ 'value': 'irrelevant-option', 'label': 'Go back to search', 'render_style': 'data' });

return _options;
}
catch (err)
{
_logData.Error = String(err);
new x_mioms_m365_assis.LogManager().writeLog("snow_va_nodeOptions_exception", JSON.stringify(_logData), vaVars.sessionID, "true");
vaVars.hasErrors = true;
}
return;
})()
0 REPLIES 0