Pass branding to a chat client
Pass custom branding to your custom chat integration.
See Set up your Virtual Agent bot's branding for more information about branding. Use
sn_cs.VASystemObject.getSettings to apply branding.
Example
script:
va_sms_twilio_adapter_default_text_outbound_transformer
(function execute(inputs, outputs) {
try {
var richControl = inputs.rich_control;
var branding = sn_cs.VASystemObject.getSettings("default_branding"); // new
var header = "(" + branding["header_label"] + ") "; // new
outputs.result = header; // new
outputs.result += richControl['label'];
} catch(e){
gs.error('Error in default text outbound transformer: ' + e.message);
throw e;
}
})(inputs, outputs);