Skip to main content

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

  1. Start the gateway and display the QR code.
  2. Scan the QR code in WhatsApp โ†’ Linked Devices.
  3. Store credentials in ~/.stateset/whatsapp-auth/.
  4. 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.