Leonid Huopolainen
All notes

"Damn, I want this in WhatsApp too. Everything important is there, damn it"

Translated from Russian. Original

This is Max, after I told him about the folders. So here is how Claude works in WhatsApp for me

In September I wrote that Claude can't read WhatsApp, so I pull everyone into Telegram. That is no longer true. Now it reads and replies in WhatsApp the same way as in Telegram

It is connected as one more linked device, like WhatsApp Web. No Business API needed, a normal personal number works
– a small Node.js script with the Baileys library, you scan the QR once in "Linked devices"
– after that the process runs all the time and puts all messages into a local database. Claude reads from there and doesn't call WhatsApp every time
– sending is a command of the same script: to whom, text, file, reply to a message

To avoid a ban:
– before sending, the script checks that Claude has seen the last message in the chat, otherwise it won't send. This way it doesn't reply out of place to something old
– the same text to the same chat won't go out a second time within an hour
– if WhatsApp unlinked the device, the script doesn't reconnect by itself, it asks for a new QR. Frequent reconnects are a sure way to a ban
– no mass messaging, this is an unofficial client

On top of it is the same setup as with Telegram from the last post: one on-duty session watches the chats and hands messages out to sessions by task

You can just tell your Claude: "connect my WhatsApp as a linked device via Baileys, with a persistent process, a local SQLite database and find / read / send commands". It will build it itself

Telegram connects in a similar way, I wrote about it here: https://t.me/sekta_claude_code/13