botserver/README.md

246 lines
14 KiB
Markdown
Raw Normal View History

2024-12-22 14:27:55 -03:00
### Key Facts
2024-12-22 14:41:19 -03:00
- LLM Orchestrator AGPL licensed (to use as custom-label SaaS, contributing back)
2024-12-22 14:27:55 -03:00
- True community governance
- No single corporate control
- 5+ years of stability
- Never changed license
- Enterprise-grad
- Hosted locally or Multicloud
2024-12-22 14:41:19 -03:00
## Contributors
2023-05-30 08:40:00 -03:00
<a href="https://github.com/generalbots/botserver/graphs/contributors">
<img src="https://contrib.rocks/image?repo=generalbots/botserver" />
</a>
2024-12-22 14:41:19 -03:00
## Overview
2023-05-30 08:40:00 -03:00
2018-11-12 10:12:29 -02:00
| Area | Status |
|------------------------------|----------------------------------------------------------------------------------------------------|
2020-07-11 11:28:23 -03:00
| Releases | [![General Bots](https://img.shields.io/npm/dt/botserver.svg?logo=npm&label=botserver)](https://www.npmjs.com/package/botserver/) [![.gbapp lib](https://img.shields.io/npm/dt/botlib.svg?logo=npm&label=botlib)](https://www.npmjs.com/package/botlib/) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)|
2024-11-15 10:16:12 -03:00
| Community | [![StackExchange](https://img.shields.io/stackexchange/stackoverflow/t/generalbots.svg)](https://stackoverflow.com/search?q=%23generalbots&s=966e24e7-4f7a-46ee-b159-79d643d6b74a) [![Open-source](https://badges.frapsoft.com/os/v2/open-source.svg)](https://badges.frapsoft.com) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![License](https://img.shields.io/badge/license-AGPL-blue.svg)](https://github.com/GeneralBots/BotServer/blob/master/LICENSE.txt)|
2019-05-12 09:40:08 -03:00
| Management | [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://gitHub.com/GeneralBots/BotServer/graphs/commit-activity) |
| Security | [![Known Vulnerabilities](https://snyk.io/test/github/GeneralBots/BotServer/badge.svg)](https://snyk.io/test/github/GeneralBots/BotServer) |
2024-12-22 14:31:05 -03:00
| Building & Quality | [![Coverage Status](https://coveralls.io/repos/github/GeneralBots/BotServer/badge.svg)](https://coveralls.io/github/GeneralBots/BotServer) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) |
2024-12-22 14:41:43 -03:00
| Packaging | [![forthebadge](https://badge.fury.io/js/botserver.svg)](https://badge.fury.io) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) |
2024-12-22 14:31:05 -03:00
| Samples | [BASIC](https://github.com/GeneralBots/BotServer/tree/master/packages/default.gbdialog) or [![TypeScript](https://badges.frapsoft.com/typescript/code/typescript.svg?v=101)](https://github.com/GeneralBots/AzureADPasswordReset.gbapp)
| [Docker Image](https://github.com/lpicanco/docker-botserver) ![Docker Pulls](https://img.shields.io/docker/pulls/lpicanco/botserver.svg) <br/> *Provided by [@lpicanco](https://github.com/lpicanco/docker-botserver)* |
2018-11-12 10:12:29 -02:00
2025-11-21 12:13:48 -03:00
# BotServer - Just Run It! 🚀
2018-11-11 14:55:26 -02:00
2024-12-22 14:34:16 -03:00
![General Bot Logo](https://github.com/GeneralBots/BotServer/blob/main/logo.png?raw=true))
2018-09-02 19:09:26 -03:00
2024-12-22 14:41:19 -03:00
General Bot is a strongly typed LLM conversational platform package based chat bot server focused in convention over configuration and code-less approaches, which brings software packages and application server concepts to help parallel bot development.
2018-09-02 19:09:26 -03:00
## GENERAL BOTS SELF-HOST AI AUTOMATION PLATFORM
| FEATURE | STATUS | STRATEGIC ADVANTAGE | COMPETITIVE GAP |
|---------|--------|---------------------|-----------------|
| **Multi-Vendor LLM API** | ✅ DEPLOYED | Unified interface for OpenAI, Groq, Claude, Anthropic | Vendor lock-in |
| **MCP + LLM Tools Generation** | ✅ DEPLOYED | Instant tool creation from code/functions | Manual tool development |
| **Semantic Caching System** | ✅ DEPLOYED | 70% cost reduction via intelligent caching | No caching or basic key-value |
| **Cross-Platform Desktop** | ⚡ NEAR-TERM | Native MacOS/Windows/Linux applications | Web-only interfaces |
| **Git-like Version Control** | ✅ DEPLOYED | Full history with rollback capabilities | Basic undo/redo |
| **Web Automation Engine** | ✅ DEPLOYED | Browser automation + AI intelligence | Separate RPA tools |
| **External Data APIs** | ✅ DEPLOYED | integrated services via connectors | Limited integrations |
| **Document Intelligence Suite** | ⚡ NEAR-TERM | AI-powered document creation & analysis | Basic file processing |
| **Workflow Collaboration** | ⚡ NEAR-TERM | Real-time team automation building | Individual automation |
| **Enterprise Data Connectors** | ✅ DEPLOYED | CRM, ERP, database native integrations | API-only connections |
| **Real-time Co-editing** | 🔶 MEDIUM-TERM | Multiple users edit workflows simultaneously | Single-user editors |
| **Advanced Analytics Dashboard** | ⚡ NEAR-TERM | Business intelligence with AI insights | Basic metrics |
| **Compliance Automation** | 🔶 MEDIUM-TERM | Regulatory compliance workflows | Manual compliance |
| **Presentation Generation** | ⚡ NEAR-TERM | AI-driven slide decks and reports | Manual creation |
| **Spreadsheet Intelligence** | ⚡ NEAR-TERM | AI analysis of complex data models | Basic CSV processing |
| **Calendar Automation** | 🔶 MEDIUM-TERM | Meeting scheduling and coordination | Manual calendar management |
| **Email Campaign Engine** | 🔶 MEDIUM-TERM | Personalized bulk email with AI | Basic mailing lists |
| **Project Management Sync** | 🔶 MEDIUM-TERM | AI coordinates across multiple tools | Siloed project data |
| **Contract Analysis** | ✅ DEPLOYED | Legal document review and summary | Manual legal review |
| **Budget Forecasting** | ⚡ NEAR-TERM | AI-powered financial projections | Spreadsheet-based |
**STATUS LEGEND:**
- ✅ DEPLOYED - Production ready
- ⚡ NEAR-TERM - 6 month development (foundation exists)
- 🔶 MEDIUM-TERM - 12 month development
**ENTERPRISE PRODUCTIVITY SUITE CAPABILITIES:**
**Document Intelligence**
- AI-powered document creation from templates
- Smart content summarization and analysis
- Multi-format compatibility (PDF, Word, Markdown)
- Version control with change tracking
**Data Analysis & Reporting**
- Spreadsheet AI with natural language queries
- Automated dashboard generation
- Predictive analytics and trend identification
- Export to multiple business formats
**Communication & Collaboration**
- Team workspace with shared automation
- Meeting automation and minute generation
- Cross-platform notification system
- Approval workflow automation
**Business Process Automation**
- End-to department workflow orchestration
- Compliance and audit trail automation
- Customer lifecycle management
- Supply chain intelligence
**Competitive Positioning:**
- **vs ChatGPT/Claude**: We automate entire business processes, not just chat
- **vs n8n/Make**: Simpler approach and stimulate little programming.
- **vs Microsoft 365**: We give control to users, not sell locked systems
- **vs Salesforce**: We connect all business systems with open-source AI orchestration
2019-02-20 08:13:31 -03:00
## What is a Bot Server?
Bot Server accelerates the process of developing a bot. It provisions all code
base, resources and deployment to the cloud, and gives you templates you can
choose from whenever you need a new bot. The server has a database and service
backend allowing you to further modify your bot package directly by downloading
a zip file, editing and uploading it back to the server (deploying process) with
no code. The Bot Server also provides a framework to develop bot packages in a more
advanced fashion writing custom code in editors like Visual Studio Code, Atom or Brackets.
Everyone can create bots by just copying and pasting some files and using their
favorite tools from Office (or any text editor) or Photoshop (or any image
2024-12-22 14:41:19 -03:00
editor). LLM and BASIC can be mixed used to build custom dialogs so Bot can be extended just like VBA for Excel.
2020-09-15 14:32:34 -03:00
2024-12-22 14:45:07 -03:00
## Getting Started
### Prerequisites
Before you embark on your General Bots journey, ensure you have the following tools installed:
- **Rust (latest stable version)**: General Bots server is built with Rust for performance and safety. Install from [rustup.rs](https://rustup.rs/).
2024-12-22 14:45:07 -03:00
- **Git (latest stable version)**: Essential for version control and collaborating on bot projects. Get it from [git-scm.com](https://git-scm.com/downloads).
**Optional (for Node.js bots):**
- **Node.js (version 20 or later)**: For Node.js-based bot packages. Download from [nodejs.org](https://nodejs.org/en/download/).
### Quick Start Guide (Rust Version)
2024-12-22 14:45:07 -03:00
Follow these steps to get your General Bots server up and running:
1. Clone the repository:
```bash
git clone https://github.com/GeneralBots/BotServer
```
This command creates a local copy of the General Bots server repository on your machine.
2. Navigate to the project directory:
```bash
cd BotServer
```
This changes your current directory to the newly cloned BotServer folder.
3. Run the server:
```bash
cargo run
```
On first run, BotServer will automatically:
- Install required components (PostgreSQL, MinIO, Redis, LLM)
- Set up the database with migrations
- Download AI models
- Upload template bots from `templates/` folder
- Start the HTTP server on `http://127.0.0.1:8080` (or your configured port)
**Management Commands:**
```bash
botserver start # Start all components
botserver stop # Stop all components
botserver restart # Restart all components
botserver list # List available components
botserver status <component> # Check component status
botserver install <component> # Install optional component
```
2024-12-22 14:45:07 -03:00
### Accessing Your Bot
Once the server is running, you can access your bot at `http://localhost:8080/` (or your configured `SERVER_PORT`). This local server allows you to interact with your bot and test its functionality in real-time.
**Anonymous Access:** Every visitor automatically gets a unique session tracked by cookie. No login required to start chatting!
**Authentication:** Users can optionally register/login at `/static/auth/login.html` to save conversations across devices.
2024-12-22 14:45:07 -03:00
**About Page:** Visit `/static/about/index.html` to learn more about BotServer and its maintainers.
2024-12-22 14:45:07 -03:00
2020-01-26 17:52:38 -03:00
Several samples, including a Bot for AD Password Reset, are avaiable on the [repository list](https://github.com/GeneralBots).
2019-03-01 15:41:12 -03:00
2022-07-19 16:56:48 -03:00
### Using complete General Bots Conversational Data Analytics
2022-07-19 16:54:38 -03:00
![](https://user-images.githubusercontent.com/14840374/178154826-8188029e-b4f4-48aa-bc0d-126307ce5121.png)
2022-07-19 16:56:48 -03:00
```
TALK "General Bots Labs presents FISCAL DATA SHOW BY BASIC"
TALK "Gift Contributions to Reduce the Public Debt API (https://fiscaldata.treasury.gov/datasets/gift-contributions-reduce-debt-held-by-public/gift-contributions-to-reduce-the-public-debt)"
result = GET "https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/gift_contributions?page[size]=500"
data = result.data
data = SELECT YEAR(record_date) as Yr, SUM(CAST(contribution_amt AS NUMBER)) AS Amount FROM data GROUP BY YEAR(record_date)
TALK "Demonstration of Gift Contributions with AS IMAGE keyword"
SET THEME dark
png = data as IMAGE
SEND FILE png
DELAY 5
TALK " Demonstration of Gift Contributions CHART keyword"
img = CHART "bar", data
SEND FILE img
```
2019-02-19 15:25:35 -03:00
## Guide
2018-12-03 15:15:43 -02:00
[Read the General Bots BotBook Guide](https://docs.pragmatismo.com.br)
2018-04-21 02:59:30 -03:00
2019-05-12 09:40:08 -03:00
# Videos
2024-12-22 14:34:16 -03:00
7 AI General Bots LLM Templates for Goodness
[https://www.youtube.com/watch?v=KJgvUPXi3Fw](https://www.youtube.com/watch?v=KJgvUPXi3Fw)
2019-05-12 09:40:08 -03:00
2019-05-12 09:46:14 -03:00
# Contributing
This project welcomes contributions and suggestions.
2018-11-13 11:49:48 -02:00
See our [Contribution Guidelines](https://github.com/pragmatismo-io/BotServer/blob/master/CONTRIBUTING.md) for more details.
2019-05-12 09:46:14 -03:00
# Reporting Security Issues
Security issues and bugs should be reported privately, via email, to the pragmatismo.com.br Security
team at [security@pragmatismo.com.br](mailto:security@pragmatismo.com.br). You should
receive a response within 24 hours. If for some reason you do not, please follow up via
email to ensure we received your original message.
2018-04-21 02:59:30 -03:00
2019-05-12 09:46:14 -03:00
# License & Warranty
2018-04-21 02:59:30 -03:00
General Bot Copyright (c) pragmatismo.com.br. All rights reserved.
2018-04-21 11:25:03 -03:00
Licensed under the AGPL-3.0.
2018-04-21 02:59:30 -03:00
2018-04-21 11:25:03 -03:00
According to our dual licensing model, this program can be used either
under the terms of the GNU Affero General Public License, version 3,
or under a proprietary license.
2018-04-21 02:59:30 -03:00
2018-04-21 11:25:03 -03:00
The texts of the GNU Affero General Public License with an additional
permission and of our proprietary license can be found at and
in the LICENSE file you have received along with this program.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
2018-04-21 02:59:30 -03:00
"General Bot" is a registered trademark of pragmatismo.com.br.
2018-04-21 11:25:03 -03:00
The licensing of the program under the AGPLv3 does not imply a
trademark license. Therefore any rights, title and interest in
our trademarks remain entirely with us.
2018-11-19 10:02:33 -02:00
2019-05-12 09:46:14 -03:00
<a href="https://stackoverflow.com/questions/ask?tags=generalbots">:speech_balloon: Ask a question</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://github.com/GeneralBots/BotBook">:book: Read the Docs</a>
2023-05-30 08:40:00 -03:00
Team pictures made with [contrib.rocks](https://contrib.rocks).
2020-09-22 11:52:03 -03:00
General Bots Code Name is [Guaribas](https://en.wikipedia.org/wiki/Guaribas), the name of a city in Brazil, state of Piaui.
[Roberto Mangabeira Unger](http://www.robertounger.com/en/): "No one should have to do work that can be done by a machine".