Giter Club home page Giter Club logo

chatbot-ui's Introduction

Marketing App Chatbot

Marketing Chatbot

An open-source AI marketing chatbot app template built with Next.js, the Vercel AI SDK, OpenAI, LangChain, and MongoDB.

Forked from NextJs AI Chatbot

Authors


Features


Coming Soon

  • Mongoose: ORM for mongoose
  • Vercel KV: Rate limiting
  • Authentication provider
    • Github, Google, Twitter
    • Email
    • Credentials

Architecture

architecture diagram

Data Model

MongoDB Collections Description
memory stores each chat data
userChatList stores all chat IDs related to a user

Representing the entity relationship diagram informally:

erDiagram  UserChatList  }|--||  Chat  :  includes  UserChatList 
{  
	string  userId   
	array  chats  
}  Chat || -- || ChatMemory : has Chat  
{  
	string id
	updatedAt  time
} ChatMemory }| -- || Msgs : includes ChatMemory  
{
    string chatId
    string userId
    string title
    array messages
    string path
    string shared
    time createdAt
} Msgs  
{
    string role
    string content
}

Running locally

Env File

Create .env file. You will need to use the environment variables defined in .env.example to run the Marketing Chatbot.

Note: You should not commit your .env file or it will expose secrets that will allow others to control access to your various OpenAI and authentication provider accounts.

Configuring GitHub's OAuth

๐Ÿšจ When configuring Github's OAuth App. Homepage URL and authorization callback URL should look something like the following:

Homepage URL: http://localhost:3000
Authorization callback URL: http://localhost:3000/api/auth/callback/github

Running the app

npm i --legacy-peer-deps
npm run dev

Your app template should now be running on localhost:3000 ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰

chatbot-ui's People

Contributors

nsoybean avatar

Stargazers

 avatar  avatar

Watchers

 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.