If your WhatsApp messages containing variables (also known as placeholders) are not being sent from a Customer Journey, it is often due to a mismatch between the placeholders defined in your approved WhatsApp message template and the fields mapped in the Journey's WhatsApp element. This can result in a CodeTemplateParamCountMismatch error.
Most WhatsApp templates use numbered placeholders (e.g. {{1}}, {{2}}), and this is the safest format to use. Even with numbered placeholders, if the number of placeholders in the approved template body does not match the number of fields mapped in Pushwoosh, the send will fail with the same error.
Correct Format (Numbered Placeholders): Your template body should look like this:Hello {{1}}, your order number is {{2}}.
To resolve this issue:
- Go to your WhatsApp Business Account and find the message template you are using.
- Check the number of placeholders in the approved template body and make sure it matches the number of fields Pushwoosh expects for it.
- If you edit the placeholders, save the changes — the template will need to be re-approved by Meta.
- Once the template is updated and active, return to your Customer Journey in Pushwoosh.
- In the WhatsApp message block, map your desired user attributes or dynamic content to each field shown for the template's placeholders.
After making these changes, your WhatsApp messages should be sent correctly.
Comments
0 comments
Please sign in to leave a comment.