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

https://github.com/wesley-archives/z3-r0

Z3-R0 simulates a chatbot experience through a custom-built intent-matching algorithm.
https://github.com/wesley-archives/z3-r0

alibabacloud bot chat hackaton

Last synced: 11 months ago
JSON representation

Z3-R0 simulates a chatbot experience through a custom-built intent-matching algorithm.

Awesome Lists containing this project

README

          

# ๐Ÿค– Z3-R0

**Z3-R0** is my submission for the [Alibaba Cloud Web Game Challenge](https://dev.to/devteam/join-us-for-the-alibaba-cloud-web-game-challenge-3000-in-prizes-1n5d?bb=220943) โ€” a creative contest that invites developers to build robot-themed games or experiences using web technologies and Alibaba Cloud services.

![Z3-R0](./demo/z3r0_row.webp)

Rather than using real AI or NLP services, **Z3-R0 simulates a chatbot experience** through a custom-built intent-matching algorithm. It analyzes user input patterns and responds with scripted interactions, creating the illusion of intelligence and personality โ€” all handled entirely on the frontend with no backend or cloud processing required.

Built with **React**, **TypeScript**, and **Vite**, Z3-R0 is designed to be fast, playful, and easy to deploy, making it perfect for lightweight hosting environments like Alibaba Cloud's OSS or ECS.

## ๐Ÿ“Œ Table of Contents

- [Features](#-features)
- [Demo](#-demo)
- [Getting Started](#-getting-started)
- [Usage](#-usage)
- [Contributing](#-contributing)
- [License](#-license)
- [Acknowledgements](#-acknowledgements)

## ๐Ÿ’ก Features

- ๐ŸŽฎ **Interactive commands**: gifs, memes, jokes, quotes, games, music & more
- ๐Ÿ—ฃ๏ธ **Text-to-speech**: Uses the Web Speech API to speak responses aloud
- ๐Ÿง  **Simulated conversation**: Predefined behavior patterns for quirky dialogue
- ๐Ÿ’ค **Idle detection**: Reacts with surprises when youโ€™re inactive
- ๐ŸŒ **Multi-language support**: EN, ES, PT, CH, HI
- ๐Ÿ’พ **Persistent local storage**: Saves language preference and last 20 messages
- ๐Ÿ›ฐ๏ธ **Dynamic status messages**: Adds personality with randomized system statuses
- ๐ŸŽญ **Smooth UI transitions**: Online/offline animations and effects
- ๐Ÿ”” **Browser Notifications**: Alerts you when Z3-R0 is ready to chat
- ๐Ÿณ **Docker-ready**: For clean builds and easy deployment

## ๐Ÿš€ Demo

A preview of Z3-R0 in action:

![Z3-R0 Screenshot](./demo/image.png)

> Try Z3-R0 now, live on [z3-r0.vercel.app](https://z3-r0.vercel.app/).

## โšก Get Started

### Prerequisites

- Node.js (v18+ recommended)
- Docker (optional, for containerized build)

### Clone the Repository

```bash
# Clone the repository
git clone https://github.com/wesleybertipaglia/z3-r0.git

# Navigate into the project folder
cd z3-r0
```

### Run Locally

```bash
# Install dependencies
npm install

# Start the development server
npm run dev
```

### Run in Docker

```bash
# Build the Docker image
docker compose up -d
```

## ๐Ÿ› ๏ธ Usage

Once the bot is live, try typing:

- `!gif` to get a random gif
- `!meme` to fetch a meme
- `!joke` for a random joke
- `!quote` for a motivational quote
- `!game` to get a list of available games
- `!hangman` to play Hangman
- `!trivia` to test your trivia knowledge
- `!music` to listen to some tunes
- `!help` for a list of commands

Z3-R0 keeps the chat engaging, even when youโ€™re AFK ๐Ÿ˜Ž

## ๐Ÿค Contributing

Contributions are welcome! If you have any suggestions or improvements, please open an issue or a pull request.

## ๐Ÿ“„ License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.

## Acknowledgements

- [ChatGPT](https://openai.com/blog/chatgpt) for the robot's profile image.
- Sound Effect by freesound_community from Pixabay
- Musics from [Spotify Embedded API](https://developer.spotify.com/documentation/web-playback-sdk/quick-start/)