@botonic/plugin-flow-builder
Version:
Use Flow Builder to show your contents
17 lines (16 loc) • 679 B
TypeScript
import { ActionRequest } from '@botonic/react';
import { FlowContent } from './content-fields';
export declare enum EventAction {
FlowNode = "flow_node",
Keyword = "nlu_keyword",
IntentSmart = "nlu_intent_smart",
Knowledgebase = "knowledgebase",
Fallback = "fallback",
FeedbackCase = "feedback_case"
}
export declare enum KnowledgebaseFailReason {
NoKnowledge = "no_knowledge",
Hallucination = "hallucination"
}
export declare function trackEvent(request: ActionRequest, eventAction: EventAction, args?: Record<string, any>): Promise<void>;
export declare function trackFlowContent(request: ActionRequest, contents: FlowContent[]): Promise<void>;