N8N Tools - WhatsApp Enhanced icon

N8N Tools - WhatsApp Enhanced

Comprehensive WhatsApp Business API integration for N8N workflows

Overview

The node provides integration with the WhatsApp Business API via the N8N Tools platform, enabling users to create and manage WhatsApp message templates programmatically. Specifically, the Create Message Template operation under the Templates resource allows users to define new message templates that can be used for sending standardized messages through WhatsApp.

This operation is beneficial in scenarios where businesses want to automate customer communication using pre-approved message formats, such as appointment reminders, authentication codes, marketing promotions, or utility notifications. For example, a company could create a template for order confirmation messages that include dynamic components like customer name and order details.

Properties

Name Meaning
Template Name The name of the message template to create.
Language Code The language code for the template (e.g., "en_US").
Template Category The category of the template. Options: Authentication, Marketing, Utility.
Template Components JSON-formatted array defining the components of the template, such as header, body, buttons, etc.

Output

The output is a JSON object representing the response from the WhatsApp API after creating the message template. This typically includes details about the newly created template such as its ID, status, and any metadata returned by the API.

No binary data is output by this operation.

Dependencies

  • Requires an active subscription and valid API key credential for the N8N Tools API.
  • Uses the WhatsApp Business API accessed through the N8N Tools platform.
  • The node expects the API URL and API key to be configured in the credentials.
  • The node performs an initial validation request to the N8N Tools API before executing operations.

Troubleshooting

  • Invalid subscription or API key error: If the node throws an error indicating invalid subscription or API key, verify that the API key credential is correctly set up and has the necessary permissions.
  • JSON parsing errors: The Template Components property must be valid JSON. Invalid JSON will cause the node to fail. Use proper JSON formatting when specifying components.
  • API request failures: Network issues or incorrect API endpoint configuration may cause failures. Check connectivity and credential settings.
  • Missing required properties: Ensure all required fields (Template Name, Template Category) are provided; otherwise, the API call will fail.

Links and References

Discussion