Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/edujbarrios/chatbot-mdx-component-for-react

A React component to serve as a chatbot integration system
https://github.com/edujbarrios/chatbot-mdx-component-for-react

chatbot component frontend ia mdx react

Last synced: 10 days ago
JSON representation

A React component to serve as a chatbot integration system

Awesome Lists containing this project

README

        

# ๐Ÿค– Chatbot MDX Component for React

A simple chatbot component for React that supports MDX and simulates AI responses. Includes a Frequently Asked Questions (FAQ) section.

## ๐Ÿš€ Features
- ๐Ÿ’ฌ Simulates AI responses to user questions.
- ๐Ÿ“š FAQ section with clickable questions.
- ๐ŸŽจ Fully customizable styles.

## ๐Ÿ“‚ Project Structure
```
chatbot_project/
โ”œโ”€โ”€ src/
โ”‚ โ”œโ”€โ”€ components/
โ”‚ โ”‚ โ””โ”€โ”€ Chatbot.jsx # Chatbot component
โ”‚ โ”œโ”€โ”€ pages/
โ”‚ โ”œโ”€โ”€ index.jsx # Sample React page
โ”‚ โ””โ”€โ”€ example.mdx # MDX example using the chatbot
โ””โ”€โ”€ README.md
```

## ๐Ÿ› ๏ธ Installation

### 1. Clone the Repository

### 2. Install Dependencies
Ensure you have Node.js and npm installed.

```bash
npm install
```

### 3. Start the Development Server
```bash
npm start
```

### 4. Open in Browser
Visit `http://localhost:3000` to see the chatbot in action.

## โš™๏ธ Customization
- **Modify Styles**: Adjust the `styles` object in `Chatbot.jsx`.
- **Add FAQs**: Pass an array of questions to the `faqs` prop in the `example.mdx` or `index.jsx` pages.

## ๐Ÿงช Testing the Component
Run the development server and navigate to the homepage or `/example` to test the component.

```bash
npm run dev
```

## ๐Ÿ’ก Why I Built This
- I wanted to create something simple to integrate into React and MDX projects.
- Itโ€™s a great way to enhance user engagement by providing immediate, simulated responses.
- The component is lightweight and easy to customize for different projects.

## ๐Ÿ”ฎ What I'm Planning Next
- I plan to integrate dynamic API calls for real AI responses.
- Multi-language support is on my roadmap.
- Iโ€™m also thinking about adding persistent chat history with recent questions asked by the users that visits a webpage

## ๐Ÿ“ง Contact
For questions, add-on ideas or feedback, feel free to reach out! ๐Ÿ˜Š