> For the complete documentation index, see [llms.txt](https://docs.mercuri.cx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mercuri.cx/features/templates/whatsapp-templates/whatsapp-template-minimum-words-parameters-ratio.md).

# WhatsApp Template: Minimum words/parameters ratio

To prevent WhatsApp template rejections for *“**too many parameters relative to message length**”*, use this formula:

### Formula

```
Total words + parameters ≥ (3×Number of parameters)+1
```

**Where:**

* **Total words + parameters (W)** = count of all words in the template plus all parameters ({{1}}, {{2}}, etc.)
* **Number of parameters (P)** = how many variables you have in the template

{% hint style="info" %}
**The total number of words plus parameters should be greater than or equal to three times the number of parameters, plus one.**
{% endhint %}

***

### See How to Ensure Your WhatsApp Template Has the Right Balance of Words and Parameters

#### <mark style="color:blue;">Example 1</mark>

**Template:**

\
\&#xNAN;*`Dear Guest, Reservation {{1}} arriving from {{2}} departs on {{3}}.`*

**Step 1: Count parameters** → {{1}}, {{2}}, {{3}} → P = 3

**Step 2: Calculate minimum required words + parameters**

```
(3×3)+1=10
```

*So, for a template with 3 parameters, the total number of required words plus parameters must be at least 10.*

**Step 3: Count actual words + parameters**

* **Words:** Dear, Guest, Reservation, arriving, from, departs, on → 7
* **Parameters:** {{1}}, {{2}}, {{3}} → 3
* **Total** = 7 + 3 = 10 ✅

**Conclusion:** Template is valid.

***

#### <mark style="color:blue;">Example 2</mark>

**Template:**

*`Hello {{1}}, your order {{2}} for {{3}} will be delivered by {{4}}.`*

**Step 1: Count parameters** → {{1}}, {{2}}, {{3}}, {{4}} → P = 4

**Step 2: Calculate minimum required words + parameters**

```
(3×4)+1=13
```

*So, for a template with 4 parameters, the total number of required words plus parameters must be at least 13.*

**Step 3: Count actual words + parameters**

* **Words:** Hello, your, order, for, will, be, delivered, by → 8
* **Parameters:** {{1}}, {{2}}, {{3}}, {{4}} → 4
* **Total** = 8 + 4 = 12 ❌ Not enough

**Step 4: Fix template**\
Add one more word:\
\&#xNAN;*Hello {{1}}, your order {{2}} for {{3}} will be delivered by {{4}} today.*

* **Words:** 9
* **Parameters:** 4
* **Total** = 9 + 4 = 13 ✅ Meets minimum

**Conclusion:** Template is now valid.

***

{% hint style="info" %}
**Tip:** For each template, count your words and parameters and make sure **W ≥ (3 × P) + 1** before submitting.
{% endhint %}
