Skip to content

Poiixen/customer-support-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat Application with Next.js and Llama 3.1 API

image_2024-08-11_234812434

Demo

customer-support-ai-one.vercel.app

Overview

This project is a chat application built using Next.js, React, JavaScript, and CSS. It integrates with the Llama 3.1 API to provide advanced customer support interactions. The application features an intuitive chat interface, message handling with text splitting, and auto-scrolling.

Technologies Used

  • Next.js: A React framework for server-side rendering and static site generation.
  • React: A JavaScript library for building user interfaces.
  • JavaScript: The programming language used for logic and functionality.
  • CSS: Styling for the user interface.
  • Llama 3.1 API: Provides advanced language model capabilities for chat interactions.
  • Material-UI: A popular React component library for UI design.
  • Vercel: For website deployment and hosting.

Features

  • Dynamic Chat Interface: Interactive chat window with auto-scrolling.
  • Text Splitting: Handles long responses by splitting text into manageable chunks.
  • Enter Key to Send: Allows sending messages using the Enter key.

Getting Started

Follow these instructions to set up and run the project locally.

Prerequisites

  • Node.js (v20.16.0 or higher)
  • npm (Node Package Manager)

Installation

  1. Clone & Install Dependencies

using bash, npm install @mui/material @emotion/react @emotion/styled openai

  1. Set Up Environment Variables
  • Create a .env.local file in the root directory and add your OpenAI API key:

using bash, OPENAI_API_KEY=your_openai_api_key

  1. Run the Development Server

using bash, npm run dev

-Open your browser and navigate to http://localhost:3000 to see the application in action.

About

AI-powered customer support system using Next.js, OpenAI API, and JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors