Overview
ArgentOS connects to WhatsApp through a WhatsApp Web bridge. This approach uses the same protocol as WhatsApp Web in your browser, so no Business API account is needed.Prerequisites
- A phone with WhatsApp installed and an active account
- ArgentOS gateway running
Setup
Pair via QR Code
The CLI will display a QR code in your terminal. Scan it with WhatsApp:
- Open WhatsApp on your phone
- Go to Settings > Linked Devices
- Tap Link a Device
- Scan the QR code shown in your terminal
Configuration
Restricting Access
UseallowedNumbers to restrict which phone numbers can interact with the agent:
Supported Features
| Feature | Supported |
|---|---|
| Text messages | Yes |
| Images | Yes |
| Documents | Yes |
| Voice messages | Partial |
| Group chats | Partial |
| Status updates | No |
Known Limitations
Session persistence
Session persistence
The WhatsApp Web session may expire after extended periods. Re-scan the QR code if the connection drops.
Rate limiting
Rate limiting
WhatsApp may temporarily ban accounts that send too many messages too quickly. Keep automated responses reasonable.
No official API
No official API
This uses an unofficial bridge. WhatsApp’s terms of service should be reviewed for your use case.
