@botonic/plugin-hubtype-analytics
Version:
Plugin for tracking in the Hubtype backend to see the results in the Hubtype Dashbord
18 lines • 759 B
JavaScript
import { EventAction, EventType } from '../types';
import { HtEvent } from './ht-event';
export class HtEventIntent extends HtEvent {
constructor(event, requestData) {
super(event, requestData);
this.type = EventType.BotEvent;
this.action = 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;
}
}
//# sourceMappingURL=ht-event-intent.js.map