getting this error from chatwoot while calling whatsapp template in n8n , i am calling a marketing api which is configured in chatwoot through meta api , now while calling the conversation api , in body for template i am using like this :
السلام عليكم و رحمة الله و بركاته مرحبا برهان the error is because processed_params structure is wrong for WhatsApp API. Change your template_params to this format instead:
The key is using params array with parameters inside not processed_params. Also make sure your template name matches exactly what you have in Meta Business Manager. Test with just 2-3 variables first to see if it works then add the rest.
I tried the same integration between n8n and Chatwoot for WhatsApp and the issue I faced was that templates need to be approved by Meta first before you can send them. Make sure you’ve gotten approval for your template in Meta Business Suite and that it’s in approved status not pending. Second thing, when you send the template from n8n you need to use the correct API, meaning go to Chatwoot API documentation and check the endpoint specifically for sending template messages not regular messages. Usually there are specific parameters you need to send like template_name and language_code and variables if your template has placeholders. Try using the HTTP Request node in n8n and set the URL and headers and body in the format Chatwoot requires. If it doesn’t work for you check the logs in Chatwoot itself because it gives you more details about why the message didn’t go through.
my template are already approved and when sending through message api , in chatwoot the message is red and it shows number of parameters are not matched: