2024-10-04 16:02:32 +00:00
< p align = "center" >
< a href = "https://hexabot.ai" target = "_blank" >
< picture >
< source media = "(prefers-color-scheme: dark)" srcset = "https://i.imgur.com/Ov50Pwe.png" >
< img alt = "Logo" src = "https://i.imgur.com/gz1FnM7.png" width = "280" / >
< / picture >
< / a >
< / p >
2024-10-03 21:31:58 +00:00
2024-10-04 16:02:32 +00:00
< div align = "center" >
< strong >
< h2 > Build Smooth AI Chatbots / Agents< / h2 > < br / >
< / strong >
Hexabot provides everything you need to create and manage your own AI powered chatbot / agent,< br / > Customizable, Multi-Channel, Multi-Lingual and Text-to-Action Capabilities.
< / div >
2024-10-03 21:31:58 +00:00
2024-10-04 16:02:32 +00:00
< p align = "center" >
< br / >
< a href = "https://docs.hexabot.ai" rel = "dofollow" > < strong > Explore the docs »< / strong > < / a >
< br / >
2024-09-20 17:33:23 +00:00
2024-10-04 16:02:32 +00:00
< br / >
< a href = "https://www.youtube.com/watch?v=-SBwHcFQESg" > Video Tutorial< / a >
·
< a href = "https://discord.gg/rNb9t2MFkG" > Join Our Discord< / a >
< / p >
< p align = "center" >
2024-10-04 17:15:41 +00:00
< video src = "https://github.com/user-attachments/assets/623d94d1-12ae-4230-b6bb-fab64fc733c3" width = "100%" / >
2024-10-04 16:02:32 +00:00
< / p >
2024-09-10 09:50:11 +00:00
## Description
2024-10-03 07:20:16 +00:00
[Hexabot ](https://hexabot.ai/ ) is an open-source AI chatbot / agent solution. It allows you to create and manage multi-channel, and multilingual chatbots / agents with ease. Hexabot is designed for flexibility and customization, offering powerful text-to-action capabilities. Originally a closed-source project (version 1), we've now open-sourced version 2 to contribute to the community and enable developers to customize and extend the platform with extensions.
2024-09-10 09:50:11 +00:00
2024-10-03 07:20:16 +00:00
**NOTE:** We are currently working to package it in a way that it would be easy to install and use, hence there's no version release just yet.
2024-10-02 16:01:55 +00:00
< a href = "https://www.producthunt.com/posts/hexabot?embed=true&utm_source=badge-featured&utm_medium=badge&utm_souce=badge-hexabot" target = "_blank" > < img src = "https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=477532&theme=light" alt = "Hexabot - Create exceptional chatbot experiences. 100% Open Source. | Product Hunt" style = "width: 250px; height: 54px;" width = "250" height = "54" / > < / a >
2024-09-10 09:50:11 +00:00
## Features
2024-10-21 10:54:40 +00:00
- **LLMs & NLU Support:** Integrate with your favorite LLM model whether it's by using Ollama, ChatGPT, Mistral or Gemini ... Manage training datasets for machine learning models that detect user intent and language, providing intelligent responses.
2024-09-10 09:50:11 +00:00
- **Multi-Channel Support:** Create consistent chatbot experiences across multiple channels like web, mobile, and social media platforms.
- **Visual Editor:** Design and manage chatbot flows with an intuitive drag-and-drop interface. Supports text messages, quick replies, carousels, and more.
- **Plugin System:** Extend Hexabot's functionality by developing custom plugins. Enable features like text-to-action responses, 3rd party system integrations, and more.
- **Multi-lingual Support:** Define multiple languages, allowing the chatbot to interact with users in their preferred language.
2024-10-05 05:20:59 +00:00
- **Knowledge Base:** Seamlessly integrate and manage dynamic content such as product catalogs and store lists for more engaging conversations.
2024-09-10 09:50:11 +00:00
- **User Roles & Permissions:** Granular access control to manage user roles and permissions for different parts of the system.
- **Contextual Data:** Define variables to collect and leverage relevant information about end-users to deliver personalized responses.
- **Subscribers & Labels:** Organize users by assigning labels and customize their chat experience based on defined segments.
- **Inbox & Handover:** Provides a real-time chat window where conversations can be monitored and handed over to human agents when necessary.
2024-10-21 10:54:40 +00:00
- **Analytics Dashboard:** Monitor chatbot interactions and performance with insightful metrics and visualizations.
2024-09-10 09:50:11 +00:00
## Directory Structure
2024-09-20 17:33:23 +00:00
2024-09-10 09:50:11 +00:00
- **frontend:** The admin panel built with React/Next.js for managing chatbot configurations and flows.
- **api:** The backend API built with NestJS and connected to MongoDB for data storage and management.
- **widget:** A React-based live chat widget that can be embedded into any website to provide real-time interaction.
- **nlu:** The NLU Engine built with Python, enabling intent recognition and language detection through machine learning models.
- **docker:** A set of Docker Compose files for deploying the entire solution, making it easy to run Hexabot in any environment.
2024-10-27 18:30:37 +00:00
## Getting Started
2024-09-20 17:33:23 +00:00
2024-10-27 18:30:37 +00:00
### Prerequisites
2024-09-10 09:50:11 +00:00
2024-10-27 18:30:37 +00:00
- Node.js >= 18.17.0
- npm (Node Package Manager)
- Docker installed
2024-09-10 09:50:11 +00:00
2024-10-27 18:30:37 +00:00
### Installation
2024-09-10 09:50:11 +00:00
2024-10-27 18:30:37 +00:00
Install Hexabot CLI globally to have easy access to its commands:
2024-09-20 17:33:23 +00:00
2024-10-27 18:30:37 +00:00
```sh
npm install -g hexabot-cli
2024-10-02 16:01:55 +00:00
```
2024-10-27 18:30:37 +00:00
### Usage
2024-09-20 17:33:23 +00:00
2024-10-27 18:30:37 +00:00
1. **Create a new project** :
2024-09-10 09:50:11 +00:00
2024-10-27 18:30:37 +00:00
```sh
hexabot create my-chatbot
```
2024-09-20 17:33:23 +00:00
2024-10-27 18:30:37 +00:00
This will create a new folder `my-chatbot` with all necessary files to get started.
2024-09-20 17:33:23 +00:00
2024-10-27 18:30:37 +00:00
2. **Navigate to your project folder** :
2024-09-20 17:33:23 +00:00
2024-10-27 18:30:37 +00:00
```sh
cd my-chatbot
```
2024-10-02 16:01:55 +00:00
2024-10-27 18:30:37 +00:00
3. **Install dependencies** :
2024-10-02 16:01:55 +00:00
2024-10-27 18:30:37 +00:00
```sh
npm install
```
2024-09-20 17:33:23 +00:00
2024-10-27 18:30:37 +00:00
4. **Initialize environment** :
2024-09-10 09:50:11 +00:00
2024-10-27 18:30:37 +00:00
```sh
hexabot init
```
2024-09-10 09:50:11 +00:00
2024-10-27 18:30:37 +00:00
This command copies the `.env.example` file to `.env` , which you can edit to customize your configuration.
2024-09-20 17:33:23 +00:00
2024-10-27 18:30:37 +00:00
5. **Run in development mode** :
2024-09-10 09:50:11 +00:00
2024-10-27 18:30:37 +00:00
```sh
hexabot dev --services nlu,ollama
```
2024-09-10 09:50:11 +00:00
2024-10-27 18:30:37 +00:00
This starts the required services in development mode.
2024-09-10 09:50:11 +00:00
2024-10-27 18:30:37 +00:00
UI Admin Panel is accessible via http://localhost:8080, the default credentials are :
2024-09-20 17:33:23 +00:00
2024-10-27 18:30:37 +00:00
- **Username:** admin@admin.admin
- **Password:** adminadmin
2024-09-10 09:50:11 +00:00
## Documentation
2024-09-20 17:33:23 +00:00
2024-09-10 09:50:11 +00:00
For detailed information on how to get started, as well as in-depth user and developer guides, please refer to our full documentation available in the docs folder or visit the [Documentation ](https://docs.hexabot.ai ).
You can also find specific documentation for different components of the project in the following locations:
2024-10-27 18:30:37 +00:00
- [CLI Documentation ](https://github.com/Hexastack/hexabot-cli/ )
2024-09-10 09:50:11 +00:00
- [API Documentation ](api/README.md )
- [UI Documentation ](frontend/README.md )
- [Live Chat Widget Documentation ](widget/README.md )
- [NLU Engine Documentation ](nlu/README.md )
2024-09-20 17:33:23 +00:00
## Contributing
2024-09-10 09:50:11 +00:00
We welcome contributions from the community! Whether you want to report a bug, suggest new features, or submit a pull request, your input is valuable to us.
2024-09-11 06:34:59 +00:00
Please refer to our contribution policy first : [How to contribute to Hexabot ](./CONTRIBUTING.md )
2024-10-02 16:01:55 +00:00
2024-09-11 06:34:59 +00:00
[![Contributor Covenant ](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg )](./CODE_OF_CONDUCT.md)
2024-09-16 10:32:40 +00:00
Feel free to join us on [Discord ](https://discord.gg/rNb9t2MFkG )
2024-09-10 09:50:11 +00:00
2024-10-27 18:30:37 +00:00
1. **Clone the Repository:**
```bash
$ git clone https://github.com/hexastack/hexabot.git
```
2. **Installation:**
Install node dependencies:
```bash
$ npm install
```
3. **Environment Setup:** To configure the environment variables, use the following command at the root folder for initialization:
```bash
$ hexabot init
```
This will copy the `.env.example` file to `.env` in the `./docker` directory if the file does not already exist.
4. **Running the Application:** Once your environment is set up, you can start the app. Use either of the following commands:
For development mode:
```bash
$ hexabot dev
```
Otherwise, you can choose to download docker images rather than building them:
```bash
$ hexabot start
```
You can also enable services such as the NLU engine and Ollama (The services are declared under the `./docker` folder) :
```bash
2024-10-28 07:41:27 +00:00
$ hexabot dev --services ollama,nlu
2024-10-27 18:30:37 +00:00
```
**Note:** The first time you run the app, Docker will take some time to download all the required images.
2024-09-10 09:50:11 +00:00
## License
2024-09-20 17:33:23 +00:00
2024-09-10 09:50:11 +00:00
This software is licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).