Live Help Now
This is a simple, little library that allows you to add
data-chat to any HTML
tag, and have it open a LiveHelpNow chat window.
npm install live-help-now
Configuration and Usage
The module exports a function which expects only one argument: an object with your LiveHelpNow account details.
Most of these details can be found by creating a chat button in LHN and reading
the information in the
<script></script> tag that it gives you.
const accountInfo =// Your account number as a stringlhnAccountN: '...'// The button design number (not really relevant for the library,// but still required by LHN)lhnButtonN: 00// The position for the chat windowlhnChatPosition: 'default'// Whether or not to auto-invite for chatlhnInviteEnabled: 1// The Chat Window numberlhnWindowN: 00000// The Invite NumberlhnInviteN: 00000// The Department NumberlhnDepartmentN: 00000