Get 1:1 support, Join the community! | 1 Click install |
---|---|
![image](https://private-user-images.githubusercontent.com/32633162/289276487-340d174b-6ddd-452f-a66d-6c5567cc4583.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzNDMzOTMsIm5iZiI6MTcyMTM0MzA5MywicGF0aCI6Ii8zMjYzMzE2Mi8yODkyNzY0ODctMzQwZDE3NGItNmRkZC00NTJmLWE2NmQtNmM1NTY3Y2M0NTgzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE4VDIyNTEzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ1ZDNiYTNiMzM5YWYwYTQwYWU4NWQwNWUyM2FmMzFmODVlMGZjZTUwZjU3YmQ0ODc3ZjVhZTBiMzg5NTNiNmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.saJgY7-9x7Yc9tL8jjaQmxlbB9bOoWcetZG7CNX1izk)
Documentation available here
OpenCopilot allows you to have your own product's AI copilot. It integrates with your underlying APIs and can execute API calls whenever needed. It uses LLMs to determine if the user's request requires calling an API endpoint. Then, it decides which endpoint to call and passes the appropriate payload based on the given API definition.
- Provide your APIs/actions definition, including your public endpoints and how to call them. Currently, OpenCopilot supports Swagger OpenAPI 3.0 for bulk import.
- OpenCopilot validates your schema to achieve the best results.
- Finally, you can integrate our user-friendly chat bubble into your SaaS app.
-
Make sure you have docker installed.
-
To begin, clone this Git repository:
git clone [email protected]:openchatai/OpenCopilot.git
In the .env
file located in the llm-server
directory, make sure to replace the placeholder value for the OPENAI_API_KEY
variable with your actual token:
OPENAI_API_KEY=YOUR_TOKEN_HERE
To install the necessary dependencies and set up the environment for the OpenCopilot project, use the following command:
make install
If you are using an ARM machine, specifically Mac Silicon, use the following command to install dependencies and set up the environment:
make install-arm
Once the installation is complete, you can access the OpenCopilot console at http://localhost:8888.
- make migrate: Run Alembic migrations.
- make down: Stop and remove all containers.
- make exec-dashboard: Access the dashboard container's shell.
- make exec-llm-server: Access the llm-server container's shell.
- make restart: Restart all containers.
- make logs: Show container logs.
- make purge: Fully clean uninstall (remove containers, networks, volumes, .env).
- make help: Display help message with available targets.
This will install the necessary dependencies and set up the environment for the OpenCopilot project.
Once the installation is complete, you can access the OpenCopilot console at http://localhost:8888
You can try it out on opencopilot.so
(OpenCopilot is not affiliated with Shopify, and they do not use OpenCopilot, it's just a demo of what copilots are capable of)
- Shopify is developing "Shopify Sidekick."
- Microsoft is working on "Windows Copilot."
- GitHub is in the process of creating "GitHub Copilot."
- Microsoft is also developing "Bing Copilot."
Our goal is to empower every SaaS product with the ability to have their own AI copilots tailored for their unique products.
- It is capable of calling your underlying APIs.
- It can transform the response into meaningful text.
- It can automatically populate certain request payload fields based on the context.
- For instance, you can request actions like: "Initiate a new case about X problem," and the title field will be automatically filled with the appropriate name.
- It is not suitable for handling large APIs (you will need to write JSON transformers to make it work, refer to the docs for more)
Most of the time, the copilot can figure out what actions to execute when the user requests something, but in case there is a complex flow, you can define it to help the copilot:
![image 2](https://private-user-images.githubusercontent.com/32633162/289277123-81cb899c-0200-40c6-bc2f-4fe49e112085.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzNDMzOTMsIm5iZiI6MTcyMTM0MzA5MywicGF0aCI6Ii8zMjYzMzE2Mi8yODkyNzcxMjMtODFjYjg5OWMtMDIwMC00MGM2LWJjMmYtNGZlNDllMTEyMDg1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE4VDIyNTEzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgzNGM5ZTAzYjQ2OWIxYmI4NjBlNTliNTM2YWQ0MzVkYjc1ZTdiMWE4YmVkOWRhYjliOTRmNzU3NWIyMmQwODEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.EBhKBNsrBos8ylbdwvPzXbsO6O2vEmDIwNWOgCX1gKM)
Less than <10 lines of codes to implement on your web app or desktop app
![image](https://private-user-images.githubusercontent.com/32633162/289277173-d2ad2597-9de2-4177-b894-7ce92dfd1fcd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzNDMzOTMsIm5iZiI6MTcyMTM0MzA5MywicGF0aCI6Ii8zMjYzMzE2Mi8yODkyNzcxNzMtZDJhZDI1OTctOWRlMi00MTc3LWI4OTQtN2NlOTJkZmQxZmNkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE4VDIyNTEzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA3YThhZGI3ZjQ2MGE5YmY5YjlhMGU4MWI2NTg0MjU5N2ZjOTBhYjM4NmVjYjljN2Y2YmNlZTkwNjVjNGIzMDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.dss-sns5hjYs109xoHcKgE-jy7gHLZ1YC7Dfy8uMTlU)
- The backend server (API) is reachable via http://localhost:8888/backend
- The dashboard server is reachable via http://localhost:8888/
- You can also use our SDK
This project follows the all-contributors specification. Contributions of any kind are welcome!
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind are welcome!
We love hearing from you! Got any cool ideas or requests? We're all ears! So, if you have something in mind, give us a shout!