Live Agent Directive
You can redirect the chatbot users who are not comfortable chatting with an automated chatbot to a live agent using the Live Agent directive.
The Live Agent directive will integrate Orbita chatbot with third-party Live Agent plugins, which will transfer the chat conversation to the Live Agents.
You can use any live agent plugin by using a script or a direct URL
The below example shows the steps to integrate the Orbita chatbot with Live Chat (https://www.livechat.com/).
Prerequisite
The Thrid-party Agent Plugin URL or the JS code. In this example, the Chat page link from Live Chat. (https://my.livechatinc.com/settings/chat-page)
Live Agent Directive
You can trigger the Live Agent directive using the below code in a function node in the Experience Designer.
Know more about directives here.
if(!msg.payload.orbita) {
msg.payload.orbita = {};
}
msg.payload.orbita.directive = [
{
type: 'liveagent',
script: "",
directUrl: "https://direct.lc.chat/12314445/"
htmlContent:"",
}
]
return msg;
Usage | Required or not | Description |
---|---|---|
| Required | The type should be set to |
| Optional if | You can integrate the chatbot with a third-party plugin using a JavaScript code. |
| Optional if | You can integrate the chatbot with a third-party plugin using a URL. |
| Optional | You can bind any instruction text before redirecting the chatbot user to the third-party live agent plugin. |
The third-party plugin will load within the chatbot when triggered as shown in the sample screenshot below.