The Chatbot Flow Builder is a tool for creating chatbot flows by connecting multiple text nodes to determine the sequence of interactions.
-
Text Node
- Supports only text messages.
- Multiple text nodes can be added to a single flow.
- Nodes can be added to the flow by dragging and dropping from the Nodes Panel.
-
Nodes Panel
- Contains all supported node types.
- Currently supports only text nodes but can be extended for more node types in the future.
-
Edge
- Connects two nodes to define the flow.
-
Source Handle
- Originates from a source node.
- Only one edge can originate from a source handle.
-
Target Handle
- Connects to a target node.
- Multiple edges can connect to a target handle.
-
Settings Panel
- Appears when a node is selected.
- Allows editing the text content of the selected text node.
-
Save Button
- Saves the flow.
- Shows an error if there are more than one nodes and more than one node has empty target handles.
- User can delete nodes
- Save changes button will only enable when some changes are made by user.
- ReactFlow: Building the flow builder interface.
- React: Building the UI components.
- TypeScript: Used for implementation.
- Antd: For components.
- Drag and drop text nodes to create a flow.
- Connect nodes using edges to define the conversation flow.
- Single click on nodes to edit their text content or delete node.
- Click the Save button to save the flow. An error will be shown if there are any configuration issues.
- Clone the repository.
- Install dependencies with
npm install
oryarn install
. - Run the development server with
npm run dev
oryarn run dev
. - Deployed link - https://chatbot-flow.netlify.app