Example
Initialize WhatsAppHandler
Create the handler using explicit parameters or environment variables.Send WhatsApp Message
Send a Text Message:Sends a plain text message to a WhatsApp user using their phone number in E.164 format.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
from superagentx_handlers.communication.whatsapp import WhatsappHandler
whatsapp_handler = WhatsappHandler(
phone_number_id="123456789012345",
access_token="your_access_token"
)
response = await whatsapp_handler.send_whatsapp_message(
to_number="919876543210",
message_text="🚀 Your deployment completed successfully!"
)
print(response)
