WhatsApp Business Cloud 节点常见问题#
¥WhatsApp Business Cloud node common issues
以下是 WhatsApp Business Cloud 节点 的一些常见错误和问题,以及解决或故障排除步骤。
¥Here are some common errors and issues with the WhatsApp Business Cloud node and steps to resolve or troubleshoot them.
错误请求 - 请检查你的参数#
¥Bad request - please check your parameters
当 WhatsApp Business Cloud 由于参数问题拒绝你的请求时,会出现此错误。使用“发送模板”操作时,如果发送的数据格式与模板不匹配,通常会遇到这种情况。
¥This error occurs when WhatsApp Business Cloud rejects your request because of a problem with its parameters. It's common to see this when using the Send Template operation if the data you send doesn't match the format of your template.
要解决此问题,请检查 消息模板 中的参数。请注意每个参数的数据类型以及它们在模板中的定义顺序。
¥To resolve this issue, review the parameters in your message template. Pay attention to each parameter's data type and the order they're defined in the template.
检查 n8n 映射到模板参数的数据。如果你使用表达式来设置参数值,请检查输入数据,确保每个项都能解析为有效值。你可能需要使用 编辑字段(集)节点 或 设置备用方案值 来确保发送的值格式正确。
¥Check the data that n8n is mapping to the template parameters. If you're using expressions to set parameter values, check the input data to make sure each item resolves to a valid value. You may want to use the Edit Fields (Set) node or set a fallback value to ensure you send a value with the correct format.
处理非文本媒体#
¥Working with non-text media
WhatsApp Business Cloud 节点可以处理非文本消息和媒体,例如图片、音频、文档等。
¥The WhatsApp Business Cloud node can work with non-text messages and media like images, audio, documents, and more.
如果你的操作包含“输入数据字段名称”或“属性名称”参数,请将其设置为字段名称本身,而不是在表达式中引用数据。
¥If your operation includes a Input Data Field Name or Property Name parameter, set this to the field name itself rather than referencing the data in an expression.
例如,如果你尝试发送消息类型为 "图片" 且“获取图片来源”设置为 "n8n" 的消息,则应将“输入数据字段名称”设置为类似 data 的字段名称,而不是类似 {{ $json.input.data }} 的表达式。
¥For example, if you are trying to send a message with an "Image" MessageType and Take Image From set to "n8n", set Input Data Field Name to a field name like data instead of an expression like {{ $json.input.data }}.