> For the complete documentation index, see [llms.txt](https://whitepaper.aitech.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://whitepaper.aitech.io/agentforge/tools/whatsapp.md).

# whatsapp

[WhatsApp](https://www.whatsapp.com/) is a globally popular messaging platform that enables secure, reliable communication between individuals and businesses.

WhatsApp Business API provides organizations with powerful capabilities to:

* **Engage customers**: Send personalized messages, notifications, and updates directly to customers' preferred messaging app
* **Automate conversations**: Create interactive chatbots and automated response systems for common inquiries
* **Enhance support**: Provide real-time customer service through a familiar interface with rich media support
* **Drive conversions**: Facilitate transactions and follow-ups with customers in a secure, compliant environment

The Agent Forge WhatsApp integration allows your agents to leverage messaging capabilities for sophisticated customer engagement scenarios, such as appointment reminders, verification codes, alerts, and interactive conversations.

This integration bridges the gap between AI workflows and customer communication, letting agents deliver timely, relevant information directly to users' mobile devices.

By connecting Agent Forge with WhatsApp, you can build intelligent agents that engage customers through their preferred platform, enhancing user experience while automating routine messaging tasks.

## Usage Instructions

Send messages to WhatsApp users using the WhatsApp Business API. Requires WhatsApp Business API configuration.

## Where to get WhatsApp Business API Access Token?

1. Log in to your [Meta for Developers account](https://developers.facebook.com/).
2. Go to the App Dashboard and select your app.
3. In the left-hand menu, navigate to WhatsApp > **API Setup**.
4. **Find the Token**

## Tools

### `whatsapp_send_message`

Send WhatsApp messages

#### Input

| Parameter       | Type   | Required | Description                              |
| --------------- | ------ | -------- | ---------------------------------------- |
| `phoneNumber`   | string | Yes      | Recipient phone number with country code |
| `message`       | string | Yes      | Message content to send                  |
| `phoneNumberId` | string | Yes      | WhatsApp Business Phone Number ID        |
| `accessToken`   | string | Yes      | WhatsApp Business API Access Token       |

#### Output

| Parameter   | Type    | Description         |
| ----------- | ------- | ------------------- |
| `success`   | boolean | Send success status |
| `messageId` | any     | Message identifier  |
| `error`     | any     | Error information   |

## Notes

* Category: `tools`
* Type: `whatsapp`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://whitepaper.aitech.io/agentforge/tools/whatsapp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
