> 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/how-the-tally-whatsapp-extension-works.md).

# How the Tally WhatsApp Extension Works

#### Step 1: Create a Customer Ledger

* In Tally, go to **Gateway of Tally → Create → Ledger**.
* Enter the customer details such as:
  * Customer Name
  * Address
  * GST Details
  * Phone Number
  * Other required information
* Save the ledger.

#### Step 2: Create a Sales Invoice

* Create a Sales Invoice for the customer.
* The invoice is automatically linked to the customer ledger.
* At this stage, no WhatsApp message is sent.

#### Step 3: Configure WhatsApp Event Mapping

* Open the **WhatsApp Event Mapping** menu.
* Select the voucher type (e.g., **Sales Invoice**).
* Assign the WhatsApp template that should be used for this voucher type.
* Save the configuration.

#### Step 4: Extension Reads the Voucher

* The Tally WhatsApp Extension detects the newly created voucher.
* It identifies the assigned WhatsApp template based on the voucher type.

#### Step 5: Replace Template Variables

* The extension fetches the required data from Tally, such as:
  * Customer Name
  * Voucher Number
  * Voucher Date
  * Invoice Amount
  * Company Name
  * Other mapped fields
* Template variables are automatically replaced with the corresponding values.

#### Step 6: Generate the PDF

* The extension automatically generates the PDF of the voucher (such as the Sales Invoice).

#### Step 7: Send the WhatsApp Message

* The extension sends the approved WhatsApp template along with the generated PDF through the configured WhatsApp Business API.
* The customer receives the document instantly on WhatsApp.

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


---

# 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/how-the-tally-whatsapp-extension-works.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.
