UNPKG

@botonic/plugin-hubtype-analytics

Version:

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

30 lines (27 loc) 1.04 kB
import { EventAction, EventIntentSmart, EventType, RequestData } from '../types' import { HtEvent } from './ht-event' export class HtEventIntentSmart extends HtEvent { nlu_intent_smart_title: string nlu_intent_smart_num_used: number nlu_intent_smart_message_id: string user_input: string flow_thread_id: string flow_id: string flow_name: string flow_node_id: string flow_node_content_id: string constructor(event: EventIntentSmart, requestData: RequestData) { super(event, requestData) this.type = EventType.BotEvent this.action = EventAction.IntentSmart this.nlu_intent_smart_title = event.nluIntentSmartTitle this.nlu_intent_smart_num_used = event.nluIntentSmartNumUsed this.nlu_intent_smart_message_id = event.nluIntentSmartMessageId this.user_input = event.userInput this.flow_thread_id = event.flowThreadId this.flow_id = event.flowId this.flow_name = event.flowName this.flow_node_id = event.flowNodeId this.flow_node_content_id = event.flowNodeContentId } }