Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
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

type: 'liveagent'

Required

The type should be set to liveagent to use the Live agent directive.

script: ""

Optional if directUrl is given

You can integrate the chatbot with a third-party plugin using a JavaScript code.

directUrl: "https://direct.lc.chat/12314445/"

Optional if script is given

You can integrate the chatbot with a third-party plugin using a URL.

htmlContent:""

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.

...