Skip to content

zavierferodova/Alisya-Chatbot

Repository files navigation

Alisya Chatbot

A friendly conversational chatbot named Alisya integrated with Large Language Model (llama3-8b-8192) for creating response and using SQLite to store conversation as memory. Using whatsapp-web.js as interface so this bot can used for everyone using their personal WhatsApp number.

Feature List

  1. Add number to group chat.
  2. Kick person from group chat.
  3. Make sticker from sent image media.
  4. Tagging all group participants.
  5. Sending a message or media via bot to someone.
  6. Talking with bot using LLM.
  7. Take over, automatic message response assistant.

Setup

  1. Install node modules,
    pnpm install
  2. Create .env file from .env.example,
    cp .env.example .env
  3. Fill .env file,
    CHIPER_KEY=<your_custom_secret_key>
    LLM_API_KEY=<your_llm_api_key>
    DB_NAME=BotDatabase.db
    
  4. Perform database migration to store chat conversation and seeding for initialize data,
    pnpm run migrate
    pnpm run seed
  5. Start node application (Choose one),
    # Production server
    pnpm start
    
    # Development server
    pnpm run dev
  6. Wait application to start and after QR Code appeared scan it on WhatsApp to login,
  7. After client authenticated you're ready to go,
  8. Enjoyy...

Environment Variables

Make sure to set these in your .env file:

  • CHIPER_KEY: Your custom secret key for encryption
  • LLM_API_KEY: Your LLM API key for LLM functionality
  • DB_NAME: Database name (default: BotDatabase.db)

Usage

You can send a !help command message to show the list action that bot can do. For bot configuration command you can send !help command message to your self WhatsApp phone number.

Additional Note

This bot using LLM from Google Generative AI you can grab your API key from Google AI Studio and fill it into env file.

Libraries

Credits

Developed by Zavier Ferodova Al Fitroh ✌️

About

Friendly conversational chatbot for WhatsApp using llama3-8b-8192

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published