Actions28
- Messages Actions
- Media Actions
- Templates Actions
- Contacts Actions
- Analytics Actions
- Webhooks Actions
Overview
The "Get Template Analytics" operation in the WhatsApp Enhanced node retrieves detailed analytics data for a specific WhatsApp message template over a defined date range. This allows users to monitor how a particular template is performing, such as tracking usage metrics or engagement statistics.
This operation is beneficial for businesses using WhatsApp templates to communicate with customers, enabling them to analyze the effectiveness of their messaging strategies and optimize template content accordingly.
Practical example:
A marketing team wants to evaluate the performance of a promotional message template sent during a campaign period. By specifying the template ID and the campaign start and end dates, they can obtain analytics data that helps measure customer engagement and response rates.
Properties
| Name | Meaning |
|---|---|
| Start Date | The start date for the analytics data retrieval, formatted as YYYY-MM-DD. |
| End Date | The end date for the analytics data retrieval, formatted as YYYY-MM-DD. |
| Template ID | The unique identifier of the WhatsApp message template for which analytics are requested. |
Output
The node outputs JSON data containing the analytics information related to the specified template within the given date range. The exact structure depends on the external API's response but typically includes metrics such as message counts, delivery status, engagement rates, or other relevant statistics.
If multiple input items are processed, the output will be an array where each element corresponds to the analytics result for each input item.
The node does not output binary data for this operation.
Dependencies
- Requires an active subscription and a valid API key credential for the external N8N Tools API service.
- The node uses the WhatsApp Business API via the N8N Tools API backend.
- Proper configuration of credentials in n8n is necessary to authenticate requests.
- The node performs an initial validation call to the external API to verify subscription and API key validity 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 configured and active.Date format issues:
Ensure that the Start Date and End Date inputs are provided in the correct YYYY-MM-DD format. Incorrect formats may cause the API to reject the request.Template ID errors:
Providing an incorrect or non-existent Template ID will likely result in an error or empty analytics data. Confirm the Template ID is valid and accessible.API rate limits or connectivity issues:
Network problems or exceeding API rate limits may cause failures. Check network connectivity and API usage quotas.Continue On Fail behavior:
If enabled, the node will continue processing subsequent items even if one fails, returning error details per item.
Links and References
- WhatsApp Business API Documentation
- N8N Documentation - Creating Custom Nodes
- N8N Tools API (Generic Reference) (Note: Link is illustrative; refer to your actual API provider documentation)