Newer Version Available
Load Files for Custom Chat Events
Upload your files as Static Resources with the cache control set to public. Give them names that are easy to remember and type and with no spaces, because you reference them by static resource name in Embedded Chat.
Load a JavaScript file
embedded_svc.settings.externalScripts = ["...", “...”]
Specify your resources using the static resource name, not the file name itself. For example, if you upload CustomEvent.js and give it the name CustomEvent, enter CustomEvent.
Load a CSS file
embedded_svc.settings.externalStyles = ["...", “...”]
Specify your resources using the static resource name, not the file name itself. For example, if you upload CustomEvent.css and give it the name CustomEventCSS, enter CustomEventCSS.