Chat widget on a ServiceNow portal

Has anybody had any luck getting the javascript snippet for the chat widget on a ServiceNow portal? How did you do it?

Hi!
Could you please elaborate what exactly you need this snippet for?