Impossible to send whatsapp templates #12330
Replies: 4 comments · 5 replies
|
@rpetribu which channel provider are you using ? |
|
Ok, I found an old post here #5958 where @munawar050 manage to solve this using a code that is not in Chatwoot's API documentation. And miraculously it works. So, I am now facing another problem. Templates are only sent correctly if:
OR
This makes no sense at all. All templates are approved by Meta. I can even send them normally via API to Meta and through ManyChat. I would really like to know if anyone is able to use this feature normally, I am willing to pay for someone to be able to guide me.... |
|
Guys, I finally managed to resolve the issue, which was occurring due to incorrect information in the API documentation, which I humbly suggest be updated. This link provides instructions on how to CREATE a conversation. One of the required parameters is the source_id:
The thing is, this parameter is not required (at least when trying to send a template) and if you try to generate any random number just to not sent it in blank, it will result in error. What I did was simply not send it. I used the same code shown above. The only difference was that I didn't send the source_id: It worked! Thanks again for your help. |
|
Sending WhatsApp templates with dynamic URL buttons via Chatwoot API + n8n After hours of debugging, I found the correct format to send WhatsApp templates with dynamic URL buttons through the Chatwoot API. The official documentation does not cover this correctly. The problem The The solution Use the endpoint {
"message_type": "outgoing",
"private": false,
"content_type": "text",
"content": "Your message text here",
"template_params": {
"name": "your_template_name",
"category": "UTILITY",
"language": "pt_BR",
"processed_params": {
"body": {
"variable_name": "value"
},
"buttons": [
{
"type": "url",
"parameter": "dynamic-url-suffix",
"url": "https://yourdomain.com/{{1}}",
"variables": ["1"]
}
]
}
}
}Key points
How I found this The official docs were wrong. I inspected the actual network request made by the Chatwoot UI when sending a template manually via DevTools → Network → Fetch/XHR → Payload, and replicated the exact format. Chatwoot version: 4.12.1 É só copiar e colar no GitHub! Vai ajudar muita gente que passar pelo mesmo problema. 🚀 |





Guys, I finally managed to resolve the issue, which was occurring due to incorrect information in the API documentation, which I humbly suggest be updated.
This link provides instructions on how to CREATE a conversation.
https://developers.chatwoot.com/api-reference/conversations/create-new-conversation
One of the required parameters is the source_id:
The thing is, this parameter is not required (at least when trying to send a template) and if you try to generate any random number just to not sent it in blank, it will result in error.
What I did was simply not send it. I used the same code shown above. The only difference was that I didn't send the source_id: