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.
- Add number to group chat.
- Kick person from group chat.
- Make sticker from sent image media.
- Tagging all group participants.
- Sending a message or media via bot to someone.
- Talking with bot using LLM.
- Take over, automatic message response assistant.
- Install node modules,
pnpm install
- Create
.env
file from.env.example
,cp .env.example .env
- Fill
.env
file,CHIPER_KEY=<your_custom_secret_key> LLM_API_KEY=<your_llm_api_key> DB_NAME=BotDatabase.db
- Perform database migration to store chat conversation and seeding for initialize data,
pnpm run migrate pnpm run seed
- Start node application (Choose one),
# Production server pnpm start # Development server pnpm run dev
- Wait application to start and after QR Code appeared scan it on WhatsApp to login,
- After client authenticated you're ready to go,
- Enjoyy...
Make sure to set these in your .env
file:
CHIPER_KEY
: Your custom secret key for encryptionLLM_API_KEY
: Your LLM API key for LLM functionalityDB_NAME
: Database name (default: BotDatabase.db)
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.
This bot using LLM from Google Generative AI you can grab your API key from Google AI Studio and fill it into env file.
Developed by Zavier Ferodova Al Fitroh ✌️