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 a wide range of WhatsApp-related operations within N8N workflows. Specifically for the Templates resource and the Get Template Status operation, the node retrieves the current status of a specified WhatsApp message template by its Template ID.

This is useful in scenarios where businesses need to programmatically check if a message template is approved, pending, or rejected before sending messages based on that template. For example, a customer support workflow might verify template approval status before attempting to send templated notifications to customers.

Properties

Name Meaning
Template Name The name of the WhatsApp message template (string).
Template ID The unique identifier of the WhatsApp message template whose status you want to retrieve.

Note: For the Get Template Status operation, only the Template ID property is required and used.

Output

  • The node outputs an array of JSON objects, each representing the response from the WhatsApp API regarding the requested template status.
  • The json output field contains detailed information about the template's current status as returned by the WhatsApp Business API via the N8N Tools service.
  • No binary data is output by this operation.

Example output structure (simplified):

{
  "templateId": "string",
  "status": "APPROVED | PENDING | REJECTED",
  "name": "string",
  "language": "string",
  "category": "string",
  "components": [ /* template components details */ ],
  "error": { /* error details if any */ }
}

Dependencies

  • Requires an active subscription and valid API key credential for the N8N Tools API service.
  • The node uses the N8N Tools WhatsApp API wrapper internally to communicate with the WhatsApp Business API.
  • Proper configuration of credentials in N8N is necessary:
    • An API key credential for authenticating requests to the N8N Tools API.
    • Optionally OAuth2 or other WhatsApp API credentials depending on the broader usage.
  • Internet connectivity to reach the N8N Tools API endpoints.

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 configured in N8N is correct and active.

  • Template not found or invalid Template ID:
    Ensure the Template ID provided exists and is correctly formatted. Mistyped or non-existent IDs will cause errors or empty responses.

  • API rate limits or connectivity issues:
    Network problems or exceeding API rate limits may cause request failures. Check network access and consider retry logic or throttling.

  • JSON parsing errors:
    Some properties expect JSON strings (e.g., template components). Make sure JSON inputs are well-formed.

Links and References

Discussion