Skip to main content

WhatsApp templates — Meta-approved bodies (canonical)

Per Meta WhatsApp Business policy, only the approved template body is delivered when a template send succeeds. Free-text fallback bodies are only used if the template send fails. To avoid divergence between channels, the fallback strings in code must mirror these canonical bodies verbatim.

restock_notification_wave1_call_to_action (MZ-9533)

  • Content SID: HX737ef8691770ad5ca93af8521c00b6e1
  • Language: fr
  • Category: Marketing
  • Content type: WhatsApp Card

Variables

VariableLocationValue
{{media_path}}Header image URLProduct image path (e.g. media/catalog/product/img.jpg)
{{CODEPROMO}}BodyCoupon code
{{cart_url}}Button 1 URLCart redirect path (e.g. r/abc123)
{{unsubscribe_url}}Button 2 URLUnsubscribe path (e.g. r/xyz789/u)

Template URLs (base + variable)

PartBase URLVariable
Header imagehttps://cdn-img.menzzo.com/{{media_path}}
Button 1 (JE FONCE)https://www.menzzo.fr/{{cart_url}}
Button 2 (Stop)https://www.menzzo.fr/{{unsubscribe_url}}

Approved body (verbatim)

⚡️ ALERTE RÉASSORT MENZZO Bonjour, votre produit est enfin de retour !
⚠️ Attention : Les stocks sont très limités.
🎉 Votre avantage : -25% pendant 24h seulement avec le code {{CODEPROMO}}.
👇 Cliquez ci-dessous pour en profiter avant la rupture :

Buttons

#ActionLabelURL
1Visit Website🛍️ JE FONCE !https://www.menzzo.fr/{{cart_url}}
2Visit WebsiteStop notificationshttps://www.menzzo.fr/{{unsubscribe_url}}

Code references

  • Template name constant: ChatwootService::RESTOCK_TEMPLATE_NAME
  • Content SID constant: ChatwootService::RESTOCK_TEMPLATE_SID
  • Template send: CoreBundle\Services\ChatwootService::sendRestockWhatsapp()
  • Free-text fallback: CoreBundle\Services\ChatwootService::buildRestockFallbackBody()
  • Image path extraction: RestockNotifier::extractImagePath()
  • Cart path: RestockNotifier::buildShortPath()
  • Unsubscribe path: RestockNotifier::buildUnsubscribePath()

Any change to the approved template on Meta's side must be reflected in both the fallback method and this document in the same commit.