...
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)
...
You can trigger the Live Agent directive using the below code in a function node in the Experience Designer.
Know more about directives here.
Code Block |
---|
if(!msg.payload.orbita) {
msg.payload.orbita = {};
}
msg.payload.orbita.directive = [
{
type: 'liveagent',
script: "This is the script from Function node",
directUrl: "https://direct.lc.chat/12314445/"
}
]
return msg; |
...