Skip to content
Β 
Β 

Latest commit

Β 

History

1,405 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Discord

image

Documentation available here


πŸ”₯ OpenCopilot


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.

How does it work?

  • Provide your API/backend definition, including your public endpoints and how to call them. Currently, OpenCopilot supports Swagger OpenAPI 3.0. We're also working on a UI to allow you to dynamically add endpoints.
  • OpenCopilot validates your schema to achieve the best results.
  • We feed the API definition to an LLM.
  • Finally, you can integrate our user-friendly chat bubble into your SaaS app.

(In this example, the user was able to add a new fish to the store just by text commands)

πŸš€ Getting Started

  • Make sure you have docker installed.

  • To begin, clone this Git repository:

git clone git@github.com:openchatai/OpenCopilot.git
  • Update the .env file located in the llm-server directory with your OPENAI_API_KEY. You can use the .env.example file as a reference:
OPENAI_API_KEY=YOUR_TOKEN_HERE
MYSQL_URI=mysql+pymysql://dbuser:dbpass@mysql:3306/opencopilot
make install

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


If needed, you can also restart the local setup using:

make restart

Also, you can see the complete list of commands using

make help

Try it out:

You can try it out on opencopilot.so

IMAGE ALT TEXT

(OpenCopilot is not affiliated with Shopify, and they do not use OpenCopilot, it's just a demo of what copilots are capable of)

AI Copilot: a growing trend

Our goal is to empower every SaaS product with the ability to have their own AI copilots tailored for their unique products.

🏁 What OpenCopilot can and can't do now?

  • 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)

πŸ›£οΈ Teach the copilot via flows:

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

πŸ›£οΈ Embed on your app in a few lines of code

Less than <10 lines of codes to implement on your web app or desktop app

image

Important links

This project follows the all-contributors specification. Contributions of any kind are welcome!

Contributors ✨

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!

About

πŸ€– πŸ”₯ AI Copilot for your own SaaS product. Open source AI sidekick for everyone.

Resources

Code of conduct

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages