- Notifications
You must be signed in to change notification settings - Fork41
Plug and play embeddable AI chatbot widget and backend deployment framework
License
ConvoStack/convostack
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation

ConvoStack is a plug-and-play embeddable AI chatbot widget and backend deployment framework for your website.It iscompletely free and open source and currently running on ourdocs 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 outthedocs.
To see a live demo of ConvoStack, check out our freeplayground!
Get your AI chatbot up and running in minutes with ourQuickstart repo and guide:
In the following example, we are connecting a Langchain OpenAILLM to the chatbot playground.
import*asdotenvfrom"dotenv";// Configures the OpenAI API keydotenv.config();import{playground}from"convostack/playground";import{IAgentContext,IAgentResponse}from"convostack/agent";import{OpenAI}from"langchain/llms/openai";playground({asyncreply(context:IAgentContext):Promise<IAgentResponse>{// `humanMessage` is the content of each message the user sends via the chatbot playground.lethumanMessage=context.getHumanMessage().content;// `agent` is the OpenAI agent we want to use to respond to each `humanMessage`constagent=newOpenAI({modelName:"gpt-3.5-turbo"});// `call` is a simple string-in, string-out method for interacting with the OpenAI agent.constresp=awaitmodel.call(humanMessage);// `resp` is the generated agent's response to the user's `humanMessage`return{content:resp,contentType:"markdown",};},});
Follow ourquickstart guide for more Langchain + ConvoStack examples.
To add the ConvoStack framework to an existing project, run the following command:
npm install --save convostack
To see the full documentation check out our docs site atdocs.convostack.ai.
About
Plug and play embeddable AI chatbot widget and backend deployment framework
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.

