Solved

can I use the api to send a message from a template (for whatsapp) ?

  • 19 January 2024
  • 1 reply
  • 54 views

So to start a new whatsapp conversation (to say, e.g., alert one of our customers about a status to their property which we service) we must send out an approved template.

 

The front api for creating a message has no such template_id field.

 

This should be okay, because you can `https://api2.frontapp.com/message_templates/{message_template_id}` to get the message template and then just use the body.

 

except

(1) this won’t fill in the tag fields automatically from the contact; and [more importantly]

(2) whatsapp rejects this message because it isn’t an approved template

 

it seems if we use the same body it isn’t necessarily the same template.

 

How can one use the api to send a template message to start a new whatsapp conversation?

icon

Best answer by justin 19 January 2024, 20:01

View original

1 reply

Userlevel 3
Badge +7

Hi Matthew 👋

Thanks for reaching out about this. Replying to conversations using a message template via API is not currently possible. 

With the way that Whatsapp requires approval of these message templates, the message must be associated with the corresponding Front message template. It is not enough to mimic the body of the Whatsapp template. 

We appreciate you letting us know more about the features you are looking for! While this is not currently possible in Front, we have an open feature request for this functionality. I have added a vote for this on your behalf. 

Best, 
Justin

Reply