> ## Documentation Index
> Fetch the complete documentation index at: https://docs.camel-ai.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Camel.toolkits.whatsapp toolkit

<a id="camel.toolkits.whatsapp_toolkit" />

<a id="camel.toolkits.whatsapp_toolkit.WhatsAppToolkit" />

## WhatsAppToolkit

```python theme={"system"}
class WhatsAppToolkit(BaseToolkit):
```

A class representing a toolkit for WhatsApp operations.

This toolkit provides methods to interact with the WhatsApp Business API,
allowing users to send messages, retrieve message templates, and get
business profile information.

**Parameters:**

* **retries** (int): Number of retries for API requests in case of failure.
* **delay** (int): Delay between retries in seconds.
* **base\_url** (str): Base URL for the WhatsApp Business API.
* **version** (str): API version.

<a id="camel.toolkits.whatsapp_toolkit.WhatsAppToolkit.__init__" />

### **init**

```python theme={"system"}
def __init__(self, timeout: Optional[float] = None):
```

Initializes the WhatsAppToolkit.

<a id="camel.toolkits.whatsapp_toolkit.WhatsAppToolkit.send_message" />

### send\_message

```python theme={"system"}
def send_message(self, to: str, message: str):
```

Sends a text message to a specified WhatsApp number.

**Parameters:**

* **to** (str): The recipient's WhatsApp number in international format.
* **message** (str): The text message to send.

**Returns:**

Union\[Dict\[str, Any], str]: A dictionary containing
the API response if successful, or an error message string if
failed.

<a id="camel.toolkits.whatsapp_toolkit.WhatsAppToolkit.get_message_templates" />

### get\_message\_templates

```python theme={"system"}
def get_message_templates(self):
```

**Returns:**

Union\[List\[Dict\[str, Any]], str]: A list of dictionaries containing
template information if successful, or an error message string
if failed.

<a id="camel.toolkits.whatsapp_toolkit.WhatsAppToolkit.get_business_profile" />

### get\_business\_profile

```python theme={"system"}
def get_business_profile(self):
```

**Returns:**

Union\[Dict\[str, Any], str]: A dictionary containing the business
profile information if successful, or an error message string
if failed.

<a id="camel.toolkits.whatsapp_toolkit.WhatsAppToolkit.get_tools" />

### get\_tools

```python theme={"system"}
def get_tools(self):
```

**Returns:**

List\[FunctionTool]: A list of FunctionTool objects for the
toolkit methods.
