Widget URLs take patron to your chat service with a single click and are also very handy for testing. And if your link is likely to be visited by a patron on a smart device (e.g. you tweeted it), then users on mobile devices will automatically receive the mobile-optimized widget.
Mobile widget attached to a queue:
https://libraryh3lp.com/mobile/queue-name@chat.libraryh3lp.com
Regular widget attached to a queue:
https://libraryh3lp.com/chat/queue-name@chat.libraryh3lp.com
Mobile widget attached to a user:
https://libraryh3lp.com/mobile/username@libraryh3lp.com
Regular widget attached to a user:
https://libraryh3lp.com/chat/username@libraryh3lp.com
Note: chats for specific users are treated as private conversations and are not logged, so they will not show up in Activity or Reports. They also can't be transferred. To provide logging and transfer capabilities for an individual, create a queue and assign only that one user to it.
The easiest way to customize your widget is to use the Widgets tab in the admin site. You can add a title, change colors, customize your identity, provide custom CSS, turn sound on by default, etc... Then, to use all those customizations, use the skin widget argument and provide your widget's ID number:
https://libraryh3lp.com/chat/queue-name@chat.libraryh3lp.com?skin=18907
Using the skin argument is the best way to send someone a widget URL over email, SMS, or Twitter since it results in the shortest URL.
You can change some widget settings as arguments in the widget URL. In the following example, a widget title is provided, and sound is turned on by default:
https://libraryh3lp.com/chat/queue-name@chat.libraryh3lp.com?skin=0&title=Ask+Us&sounds=true
Here is a complete list of arguments you can use in the widget URL include:
To add a title and pick a new theme:
https://libraryh3lp.com/chat/queue-name@chat.libraryh3lp.com?title=My+Chat+Widget&theme=gota
CSS Hooks
The keyword to supply your own CSS is "css" and the argument should be a URL pointing to your file. The default CSS is:
http://libraryh3lp.com/css/chat.css
Your customizations will be added to the default, so that you have a chance to override what's there without having to reinvent the wheel. An example:
http://libraryh3lp.com/chat/queue-name@chat.libraryh3lp.com?css=http://my.library.edu/chat/custom.css
You should only provide the changes you're making from the default.
Title and CSS
http://libraryh3lp.com/chat/queue-name@chat.libraryh3lp.com?title=My+Chat+Widget&css=http://my.library.edu/chat/custom.css
One last item of note. If you use the Presence API, you'll notice that it supplies an "openChat" method for convenience, so that you don't have to supply the raw chat URL. If you want to use the customization features with this method, just pass the options as part of the argument, as in:
libraryh3lp.openChat({title: 'My Chat Widget', theme: 'gota'});
The
libraryh3lp.openChat()method also works to customize follow-me widgets.