Problems sending whatsapp template with media (video or image)

My issue is sending a template via a “WhatsApp Business Cloud node”.

Message in the issue:
“Bad request - please check your parameters
Parameter format does not match format in the created template”

From what I could tell, if I put an image or video in the template, the system starts giving this error. If I put a template without media, it will work normally.

Important: the issue of parameters (which is in the message in the issue) has nothing to do with the parameters placed in the template. Because if I have a template without media and with parameters, it will work normally.

I am working with two versions.

Production: 1.88.0
Test: 1.100.1

I have seen 3 open issues here in the community, but none of them have been answered.




Simple template with no parameters, no buttons, just text and media.

Information on your n8n setup

  • n8n version: 1.100.1
  • Database (default: SQLite): PostgreSQL
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Coolify
  • Operating system: Linux
1 Like

Thank you very much for the answer!

Maybe N8N has problems sending templates with media.

Do you have any example of pre-uploading media to get the ID? So that I can send it not as a template, but as a regular message.

I’ve already tried sending it with the link, it doesn’t give any error, and the message doesn’t arrive.

1 Like

Sir, do you have an example of this request, i have the same problem, i cant send templates via whatsapp. Im making a flow to do an automatic schedule appointments.

When you create a template with an image, you need to add a component of type header, then add a parameter of type image and provide the image URL. It doesn’t matter what image you include in the template—just follow this format. This solved my problem.

2 Likes

Hey @Joao_Paulo_Arruda_Di , did you solve this problem?

According to my study, unfortunately, the N8N Send Template node only supports the use of an image URL. So, you have two ways to achieve what you want:

  1. Upload your image to a server and get a public URL. Use this URL in the header component, as said by @Christian_Santanas
  2. Upload your image to WhatsApp, get the image ID, and make an HTTP Request to send the template (using the image ID in the header component).

Something like this:

For templates, when defining an image or video, the URL must be specified (it doesn’t matter if a default value is set at the time of creation).

However, I’m having issues with the template that uses video. When adding components (header type), the ‘video’ option isn’t listed when selecting the type. When manually entering the value in expression mode, the field for entering the value isn’t enabled.

Hey @robicastilho i did tried the second option and i do get
“message_status”: “accepted” with other data in response but never received a message on the WhatsApp number I’m trying to send it, can you help me with this.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.