> For the complete documentation index, see [llms.txt](https://helpdocumentation.gitbook.io/user/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpdocumentation.gitbook.io/user/integrations/tally/sync-whatsapp-templates-and-configure-event-and-variable-mapping.md).

# Sync WhatsApp Templates and Configure Event & Variable Mapping

#### Step 1: Understand the Prerequisites

Before sending WhatsApp messages from Tally:

* Create and get your WhatsApp templates approved in your panel.
* The Tally WhatsApp Extension does not create templates; it only syncs approved templates from your WhatsApp Business Account.

#### Step 2: Sync WhatsApp Templates

* Open **TallyPrime**.
* Go to **WhatsApp Sync Template**.
* Press **Enter** to start the synchronization.
* Wait until the template sync is completed.

#### Step 3: Open Event Mapping

* Go to **WhatsApp Event Mapping**.
* Select the event you want to configure (e.g., **Sales Invoice**, **Receipt Voucher**, **Payment Reminder**, or **Ledger Statement**).

#### Step 4: Assign a WhatsApp Template

* Choose the appropriate approved WhatsApp template for the selected event.
* Ensure the template matches the event (e.g., Invoice template for Sales Invoice, Receipt template for Receipt Voucher).

#### Step 5: Configure Variable Mapping

* Open the **Variable Mapping** screen.
* Map each template variable to the corresponding Tally field, such as:
  * Customer Name → Party Name
  * Invoice Number → Voucher Number
  * Invoice Amount → Voucher Amount
  * Invoice Date → Voucher Date
* Save the mapping using **Alt + A**.

#### Step 6: Repeat for Other Events

* Configure event mapping and variable mapping for all required voucher types and documents.

{% embed url="<https://www.youtube.com/watch?v=A8MN0SbiRiM>" %}


---

# 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, and the optional `goal` query parameter:

```
GET https://helpdocumentation.gitbook.io/user/integrations/tally/sync-whatsapp-templates-and-configure-event-and-variable-mapping.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
