Git Product home page Git Product logo

ConvoStack 💬⭐

Screenshot 2023-06-02 at 2 47 17 AM

Key Features

ConvoStack is a plug-and-play embeddable AI chatbot widget and backend deployment framework for your website. It is completely free and open source and currently running on our docs website!

The core technologies are:

  • React (frontend)
  • Express.js (backend)
  • Redis (Production cache & pub/sub)
  • Langchain (AI agent framework integration)

To learn more about the project, compatible technologies, and how to get started, check out the docs.

Try it out

To see a live demo of ConvoStack, check out our free playground!

Getting Started

Get your AI chatbot up and running in minutes with our Quickstart repo and guide:

In the following example, we are connecting a Langchain OpenAI LLM to the chatbot playground.

import * as dotenv from "dotenv";
// Configures the OpenAI API key
dotenv.config();

import { playground } from "convostack/playground";
import { IAgentContext, IAgentResponse } from "convostack/agent";
import { OpenAI } from "langchain/llms/openai";

playground({
  async reply(context: IAgentContext): Promise<IAgentResponse> {
    // `humanMessage` is the content of each message the user sends via the chatbot playground.
    let humanMessage = context.getHumanMessage().content;
    // `agent` is the OpenAI agent we want to use to respond to each `humanMessage`
    const agent = new OpenAI({ modelName: "gpt-3.5-turbo" });
    // `call` is a simple string-in, string-out method for interacting with the OpenAI agent.
    const resp = await model.call(humanMessage);
    // `resp` is the generated agent's response to the user's `humanMessage`
    return {
      content: resp,
      contentType: "markdown",
    };
  },
});

See the code above in action: ConvoStack Quickstart Example 1

Follow our quickstart guide for more Langchain + ConvoStack examples.

Installation

To add the ConvoStack framework to an existing project, run the following command:

npm install --save convostack

Architecture

Documentation

To see the full documentation check out our docs site at docs.convostack.ai.

ConvoStack's Projects

convostack icon convostack

Plug and play embeddable AI chatbot widget and backend deployment framework

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.