Extending The Widget For Lead Routing For v2
- Written byaskavenue
- Updated: June 11th 2018
The askavenue Chat Widget includes additional options to allow your chat widget to not only load on every page on your website, but to customize it so only specific Agents or where only a single Agent can receive chats.
To send a chat to a specific agent, a value must be passed to options.agent_id in the widget code. This ID can be imported when inviting agents to your account. Alternatively, our system will generate an ID for each agent if one is not supplied. The Agent ID must then be passed in your widget code on the page(s) you want to chats sent to that agent.
eg. options.agent_id='[your agent id]’
|Assigned||This is your unique identifier assigned to you by askavenue. If set, all active Agents added to your Account will receive a question.|
|Blank||This is the Agent’s unique identifier (ID). If set, only the Agent with the specified ID will receive the broadcast question. This is used for direct agent messaging and bypasses all other broadcast rules. Note: all other options are ignored if this value is set. Only letters and numbers are accepted.|
|5||This is the maximum number (quantity) of Agents who will receive a broadcast question. If set and agent_id is blank, only the entered quantity will receive the question. If left blank, up to 5 Active Agents in the Company will receive the question. If set, must be greater than 0.|
|5||This is the proximity to which the question will broadcast to in Kilometers. If set, the question is broadcast to the set distance in kilometers from [latitude] and [longitude] values defined. For example, if set to 5 then the question will broadcast to all Agents in the Company within 5 kms of [latitude] and [longitude]. This is ignored if latitude and latitude are not set. If set, must be between 1 and 500.|
|Blank||This is the latitude coordinate based on where the question will broadcast to. Required if radius_limit is set. This is ignored if data-radius is not set. If set, must be between -90 and 90.|
|Blank||This is the longitude coordinate based on where the question will broadcast to. Required if radius_limit is set. This is ignored if data-radius is not set. If set, must be between -180 and 180.|
FAQs , Developer Docs