Giter Club home page Giter Club logo

superflows's Introduction


Superflows Logo

Open Source alternative to OpenAI Assistants API

🎮 Demo · 🌐 Website · 📚 Docs · 💬 Slack · 🖥 React Components


Superflows makes it easy to add an AI assistant to a software product. This lets users ask questions in natural language and the assistant makes calls to the software's API to answer them.

E.g. a CRM user could ask:

Have we closed any deals with publishing companies? If so, who was involved in those deals?

or:

Eve is ill today. Move her calls to the rest of the team - prioritise those who have had contact with the prospect before.

A user could ask their analytics assistant:

Did the Google Ads campaign we ran last month have a positive ROI? How many conversions did it generate?

Superflows will make API calls to answer these questions or complete tasks, and write code to analyse and plot data.

Check out a demo of Superflows in a CRM here.

You can try out the cloud version for free here or self-host. You can learn more on the docs pages.

Superflows.Analytics.Feature.mp4

Features

  • Calls API endpoints to complete tasks and answer questions for users
  • Writes code to analyse data and create plots 📊
  • Uses RAG (retrieval) to answer questions on static knowledge 📚
  • Developer dashboard to configure and test your AI assistant 🎛️
  • Stateful streaming API 🏞️
  • UI components (React components here) 🖥️
  • Upload API specifications for fast set up 💨
  • Asks for user confirmation before taking potentially damaging actions ✅
  • Track usage in dashboard 📊
  • Multi-LLM support (Finetuned GPT-3.5, GPT-4, Mixtral, Llama2...) 🌍
  • Collects user feedback on AI replies for fine-tuning 👍
  • Self-hosting, including with fully open source model. Reach out if interested. 🏠

Setup

Setting up an AI Assistant in Superflows Cloud is simple:

  1. Upload your API specification
  2. Test in the playground
  3. Integrate into your product in 1 line of code

Dashboard

Superflows has a developer dashboard where you can configure, evaluate and debug your AI assistant before putting it into production.

You can interact with your assistant on the 'Playground'. 'Developer mode' shows you under the hood of what the assistant is thinking and planning. 'Mock API responses' enables you to check the behaviour of the assistant without connecting it to an API.

Superflows playground

The 'Actions' page lets you control which API endpoints your assistant can call to answer user queries in a simple dashboard.

These endpoints can easily be uploaded via an Open API Specification, or entered manually.

Superflows actions page

UI Components

Superflows comes with out-of-the-box React UI components. These components let you integrate Superflows into your product in 1 line of code (integration guide).

Superflows modal

API

The API specification can be found in the docs.

Support / talk with founders

Self-hosting

We haven't written a self-hosting guide for Superflows yet. If you're interested in self-hosting, please reach out to us on Slack or email.

Roadmap

Available here.

Setting up locally

  • Local setup

You need to be running a local version of Supabase to develop this project locally.

Here are comprehensive instructions on using the Supabase CLI

(note: if you have used Supabase in other projects before, you may have to supabase stop before running supabase start)

If using npm

npm i
npm install supabase --save-dev
npx supabase start

The 2nd command should give you an anon_api_key and a service_role key.

You'll need to enter these into the .env file. Check out .env.example for the format and variables required.

Once you fill in .env.example, rename it .env.

To run in development mode:

make run

(Alternatively, if you don't have make, use npm run dev)

  • Docker Setup

Locate the init.sh file in the docker/development directory after cloning the project.

Prerequisites

  • Ensure that git is installed on your system. If it's not installed, the script will notify you.
  • Install docker and docker compose using the relevant installation guide for your operating system

Usage

If you are running on windows, preferably use the git bash cli or WSL, you might need sudo permissions

Make the Script Executable Before using the script for the first time, ensure it is executable then run it:

chmod +x init.sh
./init.sh

This script is designed to facilitate the process of setting up and managing the Superflows development environment with Supabase and also to setup the base environment configuration in your project. It ensures that the Supabase repository is either cloned or updated, and it also checks and manages the .env file, merging the existing .env.example files if necessary.

By default the script runs docker compose to run start the containers and build (where required)

Verify contents and set custom env

The script should have created the supabase folder and also a .env file.

  • Review the env variables and correct or change to suit your environment - the env should already contain sensible defaults (however)

  • Run the compose file (depending on what version of compose you have installed)

docker compose up -d build 

or

docker-compose up -d build

superflows's People

Contributors

dependabot[bot] avatar harrisyn avatar henry-pulver avatar istvan-kreisz avatar mgphillips avatar neuromantic99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

superflows's Issues

GraphQL support

I'm developing an app that exposes a GraphQL API. What would it take to be able to upload my graphql schema when setting up superflows for my app? I'd rather not have to create a REST API just to integrate.

GHL integration

Wondering whether I can use Superflows with my Saas-over-GHL product. Possible? Please advise!

docker-compse up -d

superflows log
Applying migration 20231015163802_add-embedded-docs-table.sql...

unexpected EOF

At statement 0: alter table "public"."organizations"

add column "chat_to_docs_enabled" boolean not null default false

Try rerunning the command with --debug to troubleshoot the error.

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.