Versions Compared

Key

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

...

  • Name. This field contains the name of the node (if given).

  • Skill. This field will be populated with the current project name automatically. You cannot edit this property.

  • NLP Type. You can choose one of the NLPs (Google, Lex, Cortana) Choose Google from the dropdown.

  • Access Token. Locate the access token in your Google Agent settings; see Developer access token in How do I set up Orbita Web Chat on my site?Not needed with V2

  • Raw NLP result output. If this checkbox is checked, the output from the node will be Raw response payload from the NLP that you have chosen.

  • Bot In Parser. Lets you override the input properties to the Bot Provider V2 node such as the Access token. Sample code:Process the input data object
    Query string example: /oeapi/bot/float?type=survey?id=423
    After NLP processes the input, msg.req will change. Need to store anything you will need to process an intent or launch to msg.payload.originalRequest

Code Block
if(msg.req.query.id) {
    msg.payload.originalRequest.id = msg.req.query.id;
}
if(msg.req.query.type) {
    msg.payload.originalRequest.type = msg.req.query.type;
}
  • Code Block
    msg.payload = 
      {
        "query"           : msg.orginalPayload.text || msg.orginalPayload.utterance,
      //"sessionId"       : msg.payload.sessionId,
        "originalRequest" : 
           {
             "source" : "orbita",
             "data"   : 
               {
                 "user" : 
                   {
                     "accessToken"  : msg.orginalPayload.accessToken || '',
                     "orbitaToken"  : msg.orginalPayload.orbitaToken || '',
                     "clearSession" : "",
                     "audio"        : msg.orginalPayload.audio
                   }
               }
           }
      }
  • Bot Out Parser. Lets you change the Output payload values such as wait time between bubbles, show/hide keyboard input.

    Image Removed

    Image Added

  • Code Block
    msg.payload.micInput = false;
    msg.payload.audio = false;
    msg.payload.waitTimeNoAnimation = false;
    msg.payload.waitSettings = { mode: 'dynamic', wpm: 300}

Output Payload

The sample format of output payload is as follows.

Code Block
{
  "orbitaPayload"       : {},
  "text"                : "",
  "reprompt"            : "",
  "sessionEnd"          : false, 
  "ssml"                : "",
  "waitTime"            : "",
  "ssmlReprompt"        : 250,
  "clearSession"        : true,
  "replaceWord"         : {}
  "waitTimeNoAnimation" : false,
  "micInput"            : true,
  "validRegexArray"     : {},
  "keyboardInput"       : true,
  "waitSettings"        : { mode: 'dynamic', wpm: 300},
  "audio"               : false,
  "keyboardInput"       : true
  
}

orbitaPayload

The following payload displays the contents from the Multi-Modal Content editor.

...