💬
whatsapp-gateway
asterbot
WhatsApp gateway for asterbot
v0.1.0
Public
WhatsApp gateway for asterbot. Routes incoming WhatsApp messages to the agent and sends responses back via the asterai:whatsapp component.
Secure by default: the gateway is disabled unless explicitly configured with an allow list or public mode.
Environment variables:
- WHATSAPP_ALLOWED_PHONES (optional): Comma-separated list of phone numbers allowed to interact with the bot. Numbers can include or omit the leading '+'.
- WHATSAPP_PUBLIC (optional): Set to "true" to allow messages from any phone number. If both WHATSAPP_ALLOWED_PHONES and WHATSAPP_PUBLIC are set, the allow list takes priority.
Interface
Exports
asterai:whatsapp/incoming-handler@0.1.0
on-message(message: message)
Imports
asterbot:types/agent@1.0.0
asterai:whatsapp/types@0.1.0
asterai:whatsapp/api@0.1.0
wasi:io/error@0.2.6
wasi:io/streams@0.2.6
wasi:cli/environment@0.2.6
wasi:cli/exit@0.2.6
wasi:cli/stdout@0.2.6
wasi:cli/stderr@0.2.6