Skip to main content
Solved

Whatsapp HSM Template with local context fields

  • November 25, 2024
  • 3 replies
  • 62 views

landrady

I created a custom app with a trigger, this app sends local context fields like a url of an order. I would like to send a Whatsapp HSM with this information, but, when I am creating a message template there, I can’t see my app context fields variables, and so, I can’t register the message template with the real variables.

Best answer by Fabio Gaulke

Hey, ​@landrady!

 

As ​@Gustavo Boregio already said, you can create WhatsApp Templates with custom fields the same way as in “common” flows…

 

The main difference is the need to provide examples for each variable:

 

You can populate these fields via actions steps in your automations or even via API: https://api.manychat.com/swagger#/Subscriber/4d01076149250e9e47f3b8aa7dc53baa

3 replies

Gustavo Boregio
Forum|alt.badge.img+6
  • Manychat Community Moderator
  • November 25, 2024

@landrady check for the {} to add the custom fields on the template

 


landrady
  • Author
  • Up-and-Comer
  • November 26, 2024

Thanks ​@Gustavo Boregio , so, to use a context variable in HSM templates is not working at this time.

I created some custom fields to the user and applied it with the context of trigger before sending a HSM message.


Fabio Gaulke
Forum|alt.badge.img+3
  • Manychat Community Moderator
  • Answer
  • November 27, 2024

Hey, ​@landrady!

 

As ​@Gustavo Boregio already said, you can create WhatsApp Templates with custom fields the same way as in “common” flows…

 

The main difference is the need to provide examples for each variable:

 

You can populate these fields via actions steps in your automations or even via API: https://api.manychat.com/swagger#/Subscriber/4d01076149250e9e47f3b8aa7dc53baa