Whatsapp Templates Issue

Short version

  1. Does anyone know how to work with whatsapp business templates & n8n ?
  2. I believe what is described below is a bug in n8n’s whatsapp “send template” node

TL;DR
Whatsapp “send template” node, it seems, does not allow to use the “components” section of the node to set variables that should be sent to the template. E.g. I have a whatsapp template that looks as follows:

  • “Hello {{name}}! How are you doing ?”

And, as per meta dev platform’s Template - Cloud API - Documentation - Meta for Developers, the request should have a components section looking as follows:

   "type": "body",
    "parameters": [
      {
        "type": "text",
        "parameter_name": "customer_name",
        "text": "John"
      },
      {
        "type": "text",
        "parameter_name": "order_id",
        "text": "9128312831"
      }        
    ]

However, from the node’s setup, I have no way of setting the parameter name.

What is the error message (if any)?

Bad request - please check your parameters
Invalid parameter

Please share your workflow

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system: win 11

I encountered the same problem with named parameters in my WhatsApp template’s body text and couldn’t get it to work.

Switching to positional parameters resolved the issue for me. Ensure the number of parameters in your template matches the number of strings provided and maintain the same order for successful execution.

1 Like

Same here, grazie Matteo! Only positional parameters seem to be allowed.

1 Like

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