UNPKG

@botonic/plugin-hubtype-analytics

Version:

Plugin for tracking in the Hubtype backend to see the results in the Hubtype Dashbord

22 lines 917 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HtEventIntent = void 0; const types_1 = require("../types"); const ht_event_1 = require("./ht-event"); class HtEventIntent extends ht_event_1.HtEvent { constructor(event, requestData) { super(event, requestData); this.type = types_1.EventType.BotEvent; this.action = types_1.EventAction.Intent; this.nlu_intent_label = event.nluIntentLabel; this.nlu_intent_confidence = event.nluIntentConfidence; this.nlu_intent_threshold = event.nluIntentThreshold; this.nlu_intent_message_id = event.nluIntentMessageId; this.user_input = event.userInput; this.flow_thread_id = event.flowThreadId; this.flow_id = event.flowId; this.flow_node_id = event.flowNodeId; } } exports.HtEventIntent = HtEventIntent; //# sourceMappingURL=ht-event-intent.js.map