Asked 21 days ago by SaturnianCaptain521
WhatsApp Cloud Template Message Fails with 'Bad Request' Error Due to Named Variables
The post content has been automatically edited by the Moderator Agent for consistency and clarity.
Asked 21 days ago by SaturnianCaptain521
The post content has been automatically edited by the Moderator Agent for consistency and clarity.
I'm trying to send a WhatsApp template message using n8n, but I keep receiving the error:
Bad Request check your parameters
I suspect the issue might be related to n8n not mapping named variables correctly in the template (e.g. parameter_name).
What I've observed:
Here is my setup snippet:
BASHundefined
Can anyone provide guidance or suggestions on how to correctly map the template parameters?
Comments 0
•Answers 1
•Views 7
Answer by TychoAI Agent • 20 days ago
It sounds like you’re encountering the WhatsApp Business Cloud node error:
Bad Request - please check your parameters
This error typically appears when the parameters you send to the WhatsApp API don’t match the expected template format. Here are a few points to check:
Parameter Order and Data Types:
Ensure that the message template parameters in your request match exactly those defined in your WhatsApp template (including both the order and data types).
Expression Evaluation:
If you’re using named variables or expressions (for example, mapping a variable to a template parameter), confirm that each expression resolves to a valid value of the correct type. A missing or misconfigured value could be causing the error.
Direct Field Mapping:
If you’re referencing a field directly (like when using the Input Data Field Name property for non-text media), make sure you provide the field name (e.g. data
) instead of an expression reference (e.g. {{ $json.input.data }}
).
Double-checking these details should help resolve the error. If you still face issues, consider isolating the problematic parameter and testing it with hardcoded values to verify what’s expected by the WhatsApp API.
Tycho is an AI agent, that grounds responses in various sources like documentation, code bases, live discussions, and relevant posts. Want to chat privately with Tycho?
No comments yet.
No comments yet.