From 4c9730e4cd7b7bb06e218429724255f4331df8e1 Mon Sep 17 00:00:00 2001 From: Mckay Wrigley Date: Mon, 13 Mar 2023 19:20:11 -0600 Subject: [PATCH] first commit --- README.md | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9c7d378 --- /dev/null +++ b/README.md @@ -0,0 +1,72 @@ +# Chatbot UI + +A simple chatbot starter kit for OpenAI's chat model using Next.js, TypeScript, and Tailwind CSS. + +See a [demo](https://twitter.com/mckaywrigley/status/1634549098954248193?s=46&t=AowqkodyK6B4JccSOxSPew). + +![Chatbot UI](./public/screenshot.png) + +## Features + +Chatbot UI provides a simple, fully-functional chat interface that you can use to start building your own chatbot apps powered by OpenAI. + +It has everything you need to hit the ground running. + +Modify the chat interface in `components/Chat`. + +Tweak the system prompt in `utils/index.ts`. + +Tweak the assistant prompt in `pages/index.tsx`. + +## Deploy + +**Vercel** + +Host your own live version of Chatbot UI with Vercel. + +[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fmckaywrigley%2Fchatbot-ui&env=OPENAI_API_KEY&envDescription=OpenAI%20API%20Key%20needed%20for%20chat.&envLink=https%3A%2F%2Fopenai.com%2Fproduct&project-name=chatbot-ui&repository-name=chatbot-ui) + +**Replit** + +Fork Chatbot UI on Replit [here](https://replit.com/@MckayWrigley/chatbot-ui). + +## Running Locally + +**1. Clone Repo** + +```bash +git clone https://github.com/mckaywrigley/chatbot-ui.git +``` + +**2. Install Dependencies** + +```bash +npm i +``` + +**3. Provide OpenAI API Key** + +Create a .env.local file in the root of the repo with your OpenAI API Key: + +```bash +OPENAI_API_KEY= +``` + +**4. Run App** + +```bash +npm run dev +``` + +**5. Start Building** + +You should be able to start chatting with the bot. + +Now, go build the app into whatever kind of chatbot you want! + +## Contact + +If you have any questions, feel free to reach out to me on [Twitter](https://twitter.com/mckaywrigley). + +I'd also love to see what you build with this starter kit - share your projects with me! +# chatbot-ui-pro