@enumura/chatbot-flow-editor
Version:
Visual chatbot flow editor - Development tool for creating conversational flows
24 lines (19 loc) • 391 B
text/typescript
export interface ChatOption {
label: string;
nextId: number;
}
export interface ChatNode {
id: number;
title: string;
options: ChatOption[];
parentId?: number;
hierarchyPath?: string;
}
export interface NodePosition {
x: number;
y: number;
}
export interface NodePositions {
[key: number]: NodePosition;
}
export type ChatbotFlow = ChatNode[];