N8N Tools - WhatsApp Enhanced icon

N8N Tools - WhatsApp Enhanced

Comprehensive WhatsApp Business API integration for N8N workflows

Overview

This node integrates with the WhatsApp Business API via the N8N Tools platform, enabling users to send various types of WhatsApp messages programmatically within n8n workflows. Specifically, the "Send Button Message" operation under the "Messages" resource allows sending interactive button messages to a specified phone number.

Such a node is beneficial for businesses aiming to automate customer engagement on WhatsApp by sending messages that include interactive buttons, which can improve user interaction and streamline responses. For example, a business could send a message with buttons like "Confirm", "Cancel", or "More Info" to facilitate quick replies from customers.

Properties

Name Meaning
Phone Number The recipient's phone number in international format (e.g., 5511999999999).
Button Text The main text displayed above the buttons in the message.
Buttons A JSON array defining the buttons to be included in the message. Each button typically includes properties such as type, title, and an identifier.

Output

The node outputs an array of JSON objects corresponding to each input item processed. Each output JSON contains the response data returned from the WhatsApp API after sending the button message. This typically includes message IDs, status information, or error details if the request failed.

No binary data output is produced by this operation.

Dependencies

  • Requires valid credentials for the N8N Tools API, including an API key and OAuth2 authentication for WhatsApp.
  • The node depends on the external N8N Tools WhatsApp API service to send messages.
  • Proper configuration of these credentials in n8n is necessary before using the node.

Troubleshooting

  • Invalid Credentials: If the API key or subscription is invalid, the node throws an error indicating invalid subscription or API key. Verify your credentials in n8n settings.
  • Malformed Buttons JSON: The "Buttons" property expects a valid JSON array. Invalid JSON syntax will cause parsing errors. Ensure the JSON is correctly formatted.
  • Phone Number Format: The phone number must be in international format without spaces or special characters. Incorrect formatting may lead to message delivery failure.
  • API Rate Limits or Service Errors: Network issues or API limits might cause failures. Check the error messages and retry accordingly.
  • Continue On Fail: If enabled, the node will continue processing subsequent items even if some fail, returning error details per item.

Links and References

Discussion