Skip to main content
WhatsAppTools enable an Agent to interact with the WhatsApp Business API, allowing it to send text and template messages.

Prerequisites

This cookbook demonstrates how to use WhatsApp integration with Agno. Before running this example, you'''ll need to complete these setup steps:
  1. Create Meta Developer Account
  2. Set Up WhatsApp Business API You can get your WhatsApp Business Account ID from Business Settings
  3. Configure Environment
    • Set these environment variables:
Important Notes:
  • For first-time outreach, you must use pre-approved message templates here
  • Test messages can only be sent to numbers that are registered in your test environment
The example below shows how to send a template message using Agno'''s WhatsApp tools. For more complex use cases, check out the WhatsApp Cloud API documentation: here

Example

The following agent will send a template message using WhatsApp:
cookbook/14_tools/whatsapp_tool.py

Toolkit Params

Toolkit Functions

Developer Resources