Code Monkey home page Code Monkey logo

opencopilot's Introduction

Get 1:1 support, Join the community! 1 Click install
Open in Gitpod
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 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.

๐Ÿš€ Getting Started

  • 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

For Linux Machines

To install the necessary dependencies and set up the environment for OpenCopilot, use the following command:

make install

For ARM Machines (Mac Silicon)

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.

Additional Commands

  • 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

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!

opencopilot's People

Contributors

ah7255703 avatar gharbat avatar codebanesr avatar dependabot[bot] avatar davidsmithdevops avatar allcontributors[bot] avatar eltociear avatar tpmccallum avatar yagarwal-allo avatar dafu-wu avatar ishaan-jaff avatar slavox 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.