Quickstart
Get up and running with the WhatsApp Assistant Bot in under 5 minutes. This guide will walk you through starting the bot, connecting it to WhatsApp, and sending your first command.This quickstart assumes you’ve already completed the installation steps. If you haven’t installed the bot yet, complete that first.
Start the bot
Start in development mode
Open your terminal and navigate to the project directory, then start the bot:You’ll see output indicating the bot is starting:
Scan the QR code
A QR code will appear in your terminal:To scan it:
- Open WhatsApp on your phone
- Go to Settings → Linked Devices
- Tap Link a Device
- Scan the QR code displayed in your terminal
Send your first command
Let’s test the bot by sending a few commands in your WhatsApp DM.Send the help command
Open WhatsApp and send a message to yourself (or to the linked device):You should receive a response listing all available commands:
Create a sticker
Send an image, GIF, or video to yourself, then reply to it with:The bot will convert it to a WhatsApp sticker and send it back to you!
Verify it works
Bot responds to commands
Bot responds to commands
When you send
!help or any command, you should receive an immediate response. If you don’t:- Check that the bot is still running in your terminal
- Verify you’re sending messages to yourself (DM), not a group
- Ensure the QR code was scanned successfully
- Check the terminal for error messages
Reminders arrive on time
Reminders arrive on time
When you set a reminder with
!notify, you should receive the notification at the specified time. If reminders don’t arrive:- Check that the NotificationService initialized successfully (look for logs in terminal)
- Verify your system time is correct
- Ensure the bot process hasn’t crashed
Data persists across restarts
Data persists across restarts
Todos, notes, and reminders should survive bot restarts:
- Add a todo:
!todo add Test persistence - Stop the bot (Ctrl+C)
- Restart the bot:
npm run dev - List todos:
!todo list
Common issues
QR code not showing- Ensure you’re running the latest version of the bot
- Check that no other WhatsApp Web sessions are blocking the connection
- Try deleting the
auth_info/folder and restarting
- Your WhatsApp account may have logged out
- Delete the
auth_info/folder and scan the QR code again - Check terminal logs for specific error messages
- Verify you’re sending messages in a DM, not a group (groups are ignored)
- Check that commands start with
!(exclamation mark) - Look for error messages in the terminal
- Verify your
DATABASE_URLin.envis correct - Ensure PostgreSQL is running and accessible
- Check that SSL is properly configured (
ssl: 'require')
Next steps
Now that your bot is running, explore more features:Command reference
Learn about all available commands and their advanced usage
Spotify integration
Connect your Spotify account to control music from WhatsApp
Deployment guide
Deploy your bot to a VPS or cloud provider for 24/7 availability
Customization
Add your own commands and customize bot behavior