Package Exports
- wazabi-bot
- wazabi-bot/bin/cli.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (wazabi-bot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
WAZABI-BOT
INTRODUCTION
A Node.js and Gemini AI-powered scaffolding library for WhatsApp bots, designed to automate customer support.
This library empowers developers, entrepreneurs, and businesses to easily create WhatsApp clients, chatbots, applications, and more to meet their business needs.
LANGUAGE
The source code is developed in TypeScript. However, you can modify it as you wish to work with the language you're most comfortable with.
PREREQUISITES
- Node.js >= 20
- npm >=
- ESM
- TypeScript
- API Gemini Google
DEPENDENCIES
- typescript
- @types/node
- @types/qrcode-terminal
- dotenv
- qrcode-terminal
- whatsapp-web.js
SET UP
Setting up a new project is quite simple with the wazabi-bot CLI. With npm installed, you can create a new wazabi-bot project with the following commands in your OS terminal:
npx wazabi-bot init
GETTING STARTED
- Use
npx wazabi-bot initto initialize the project - Install dependencies with
npm install - Modify content docs in the
/messagesdirectory - Create a
.envfile in the root of the project - Get your Gemini AI API key from Google AI Studio and add it to the
.envfile as: GEMINI_API_KEY=your_api_key_here - Build the project using
npm run build - Start the bot
npm start - Scan the QR code with your WhatsApp account
- Your bot is ready! 🎉
VIDEO-DEMO
You can find the video-demo here: VIDEO
DISCLAIMER
We build our bot over whatsapp-web.js, which is an unofficial, open-source library that isn't made by WhatsApp or affiliated with it in any way. This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with WhatsApp or any of its subsidiaries or its affiliates. The official WhatsApp website can be found at whatsapp.com. "WhatsApp" as well as related names, marks, emblems and images are registered trademarks of their respective owners. Also it is not guaranteed you will not be blocked by using this method. WhatsApp does not allow bots or unofficial clients on their platform, so this shouldn't be considered totally safe. For any businesses looking to integrate with WhatsApp for critical applications, we highly recommend using officially supported methods, such as Twilio's solution or other alternatives. You might also consider the official API.
LICENSE
This project is licensed under the Apache License 2.0. You can find the full license text here: LICENSE