An open API service indexing awesome lists of open source software.

https://github.com/ivstudio/ai-agent

POC for an AI chatbot built with React and Express.
https://github.com/ivstudio/ai-agent

Last synced: about 1 year ago
JSON representation

POC for an AI chatbot built with React and Express.

Awesome Lists containing this project

README

          

# AI Chatbot POC

This is a POC for an AI chatbot built with React and Express.

## Key Features

- HTTP Streaming.
- Live Message Cancellation โ€“ Stop AI responses mid-stream if needed.
- Message Role Support โ€“ Maintains structured chat roles (user, assistant, system).
- Typing Indicator โ€“ Displays a loading state while AI is generating a response.
- Auto-Scrolling โ€“ Keeps the chat scrolled to the latest message.
- Fully Customizable UI
- Submit messages using the Enter key or submit button.
- Send messages to the AI agent via a controlled input field

## Stack

- Frontend: React + TypeScript
- Backend: Express.js
- AI: OpenAI API

## ๐Ÿš€Getting Started

1. `cd client && npm install` and run `npm run dev`
2. `cd server && npm install` and run `npm run dev`
3. Add your OpenAI API key to `server/.env`.