@botonic/plugin-flow-builder
Version:
Botonic plugin for **Hubtype Flow Builder**: run and bridge flow-driven logic from bots on the **current** line.
24 lines (23 loc) • 929 B
TypeScript
import { BotonicContext } from '@botonic/core';
import { FlowBuilderApi } from '../api';
import { HtSmartIntentNode } from '../content-fields/hubtype-fields/smart-intent';
export interface SmartIntentsInferenceParams {
bot_id: string;
text: string;
num_smart_intents_to_use?: number;
use_latest: boolean;
}
export interface SmartIntentsInferenceConfig {
useLatest: boolean;
numSmartIntentsToUse?: number;
}
export declare class SmartIntentsApi {
cmsApi: FlowBuilderApi;
botonicContext: BotonicContext;
smartIntentsConfig: SmartIntentsInferenceConfig;
userTextOrTranscript: string;
flowId?: string | undefined;
constructor(cmsApi: FlowBuilderApi, botonicContext: BotonicContext, smartIntentsConfig: SmartIntentsInferenceConfig, userTextOrTranscript: string, flowId?: string | undefined);
getNodeByInput(): Promise<HtSmartIntentNode | undefined>;
private resolveUseLatest;
}