Giter Site home page Giter Site logo

sobhanbera / bitespeed-frontend-task Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.51 MB

A simple, extensible React tool to design chatbot flows using a drag-and-drop interface for connecting messages.

Home Page: https://bitespeed-frontend-task-sobhanbera.vercel.app

JavaScript 99.61% CSS 0.39%
bitespeed chatbot flowchart reactflow

bitespeed-frontend-task's Introduction

Overview

This is a Frontend Task by Bitespeed.

This project aims to create a simple and extensible Chatbot Flow Builder using React. The builder will allow users to design chatbot flows by connecting multiple messages together to determine their order of execution.

Website is hosted at bitespeed-frontend-task-sobhanbera.vercel.app

Features

  • Message Nodes: Define individual messages as nodes in the chatbot flow.
  • Connectors: Link messages to dictate the sequence in which they appear.
  • Drag and Drop: Easily arrange and connect messages using a drag-and-drop interface.
  • Extensibility: Designed to easily add new features and functionalities as needed.

Prerequisites

  1. Node.js and npm installed on your machine.
  2. Basic understanding of React.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

Usage

  • Add a Message Node: Drag and drop the Message Node from sidebar, to create a new message node.
  • Edit Message: Click on a message node to edit its content.
  • Connect Messages: Drag from the connector point on one message to another to create a link. (Source -> Target)
  • Save Flow: Once your flow is complete, click on the "Save" button to save your flow configuration.
Screen.Recording.2024-05-24.at.17.24.05.mp4

Directory Structure

src
├── app
│   ├── favicon.ico
│   ├── globals.css
│   ├── layout.js
│   └── page.js
└── components
    ├── FlowBuilder.js
    ├── Header.js
    ├── NodePanelSidebar.js
    ├── NodeSelector.js
    ├── edges                   # Custom edges
    │   └── CustomEdge.js
    ├── editors                 # Custom editors
    │   └── TextNodeEditor.js
    ├── handles                 # Custom handles
    │   └── CustomHandle.js
    └── nodes                   # Custom nodes
        └── TextMessageNode.js

Extensibility

The project is designed with extensibility in mind. Here are a few ways you can extend the functionality:

  • New Node Types: Add different types of nodes (e.g., decision nodes, image node, file node, etc). This can be done by creating a new component in components/nodes folder.

  • Create custom editor: Add custom image editor, file input, etc. This can be done by creating a new component in components/editors folder.

Refrences

bitespeed-frontend-task's People

Contributors

sobhanbera avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.