UNPKG

@infomatebot/chatbot-widget

Version:

Build intelligent chatbots using pre-designed conversation flows with quick reply options. Upload documents for AI-powered, context-aware responses and reduce support costs by 80% with guided conversations

33 lines 1.09 kB
export interface ChatbotConfig { apiBaseUrl: string; apiKey: string; } export interface ChatbotEvents { 'actionTrigger': CustomEvent<{ payload: ChatbotActionPayload; callback: ChatbotActionCallback; }>; } export interface ChatbotActionPayload { action: string; [key: string]: any; } export interface ChatbotActionResponse { success: boolean; message?: string; data?: Record<string, any>; error?: string; } export interface ChatbotActionCallback { (response: ChatbotActionResponse): void; } export interface ChatbotActionHandler { (payload: ChatbotActionPayload, callback: ChatbotActionCallback): void; } export interface ChatbotIntegrationAPI { isReady(): boolean; on<K extends keyof ChatbotEvents>(eventType: K, handler: (event: ChatbotEvents[K]) => void): void; off<K extends keyof ChatbotEvents>(eventType: K, handler: (event: ChatbotEvents[K]) => void): void; once<K extends keyof ChatbotEvents>(eventType: K, handler: (event: ChatbotEvents[K]) => void): void; } //# sourceMappingURL=public.types.d.ts.map