# WhatsApp Message Templates

### Step 1: Create a WhatsApp Template in Your Meta Account <a href="#step-1-meta-business-manager-setup" id="step-1-meta-business-manager-setup"></a>

> **Note:** Before creating a WhatsApp template, make sure your Meta Business account is connected and integrated to your VoiceHub account. If you don’t have it set up yet, follow our guide: [Connect Your Meta Business Account](https://dataqueue.gitbook.io/voicehub-docs/docs/connect-your-meta-business-account).

WhatsApp templates are pre-approved message formats that allow your business to send structured messages to users. Each template can include a **header**, **body**, and **footer**, and you can use placeholders for personalized content.

**Steps to create a template:**

1. Go to [Meta Business Manager](https://business.facebook.com/) and log in with your account credentials.
2. From the left-hand menu, select **“WhatsApp Manager”**&#x20;
3. Navigate to **"Message Templates"**
   * Click **“Manage Templates”**
   * Click the **“Create Template”** button
4. Enter a **template name**, select a **category** (e.g., Transactional, Marketing), and choose a **language**.
5. Click **“Submit”** to send the template for approval.

### Step 2: Use WhatsApp Message Templates in Your Agent <a href="#step-2-whatsapp-business-account-setup" id="step-2-whatsapp-business-account-setup"></a>

Once your template is approved in Meta, you can use it inside your agent to send WhatsApp messages.

1. In your agent workflow, **select the `SEND_WHATSAPP_MESSAGE_NODE`**.

<figure><picture><source srcset="/files/xU3R06UEGAxTkXFg5Y0f" media="(prefers-color-scheme: dark)"><img src="/files/yQN0GJUH4vPdDsdPNYkZ" alt=""></picture><figcaption></figcaption></figure>

1. In the node form:
   * Select a **Meta Connection** from your connected account list.
   * After selecting the Meta connection, choose a **Phone Number** from the phone numbers list linked to the selected Meta app.
   * Next, select a **WhatsApp Message Template** from the list of templates available for that phone number.
2. Once a template is selected, the form will display all of its **parameters**.
   * For each parameter, you can define its value as one of the following types:
     * **Static**
     * **Extract Variable**
     * **Prompt**

<figure><picture><source srcset="/files/rdhgVH9m2iJzTAJFlAor" media="(prefers-color-scheme: dark)"><img src="/files/ZIXhoKxBgx5J9gfmpgYo" alt=""></picture><figcaption></figcaption></figure>

This configuration allows your agent to send personalized WhatsApp messages using pre-approved templates directly through Meta’s WhatsApp API.


---

# Agent Instructions: 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://dataqueue.gitbook.io/voicehub-docs/integrations/whatsapp-message-templates.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.
