Run the WhatsApp gateway
This guide helps you connect WhatsApp to iCommerce agent workflows.
Prerequisites
- WhatsApp account with access to Linked Devices
- iCommerce CLI installed
- Database path for iCommerce (
--db)
Connect WhatsApp and run the gateway
- Start the gateway and display the QR code.
- Scan the QR code in WhatsApp โ Linked Devices.
- Store credentials in
~/.stateset/whatsapp-auth/.
- Re-run to reconnect automatically.
stateset-whatsapp --db ./store.db
Use --apply only when you are ready to allow write actions.
Verify the result
Send a test message to the connected WhatsApp account and confirm the agent responds.