Lens Scripting API

    Class BaseNlpResponse

    The abstract base class all NlpResponses inherit from. NlpResponses are used as the result from the VoiceML NLP engine with information after processing the transcript of the input audio.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    additionalParams: AdditionalParam[]

    Additional params to send in the response.

    modelName: string

    Name of the model that sent the response. In current studio release, you can expect the result to contain either VOICE_ENABLED_UI like described in VoiceML.NlpIntentModel. If using enableSystemCommands(), SYSTEM_COMMANDS will be returned as well.

    The status of the NLP response. in case of successful result, the value should be VoiceMLModule.NlpResponsesStatusCodes.OK, in case of failure, the value should be VoiceMLModule.NlpResponsesStatusCodes.ERROR.

    Methods

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean

    MMNEPVFCICPMFPCPTTAAATR