Overview
This node, named "Wuzapi Admin," provides administrative operations for managing users and global system settings in the Wuzapi WhatsApp API environment. The specific operation "Send Global Test Event" allows sending a custom test event through the global event systems, which is useful for verifying that event handling, webhooks, or message queues are functioning correctly.
Typical use cases include:
- Testing integration points by sending simulated events.
- Verifying that global event processing pipelines (e.g., webhook receivers, message brokers) are operational.
- Debugging or monitoring event flows without affecting real user data.
For example, you might send a "TestEvent" with custom JSON data to confirm that your downstream services receive and process events as expected.
Properties
| Name | Meaning |
|---|---|
| Event Type | Type of event to send. Examples: TestEvent, Message, Connected. |
| User ID | User identifier associated with the test event, e.g., admin-test. |
| Test Data | Custom JSON-formatted data payload to include with the test event. Example: |
{
"message": "test event",
"timestamp": "2024-01-01T00:00:00Z"
}
|
Output
The node outputs an array of JSON objects representing the response from the Wuzapi admin API after sending the test event. The structure depends on the API's response but generally includes confirmation details about the event sent or error information if the request failed.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the Wuzapi Admin API.
- The node makes HTTP requests to the configured Wuzapi Admin API endpoint.
- Proper network access to the Wuzapi Admin API server is necessary.
- The "sendGlobalTestEvent" operation expects valid JSON input for the "Test Data" property.
Troubleshooting
- Invalid JSON in Test Data: If the "Test Data" field contains malformed JSON, the node will throw an error stating "Test Data must be valid JSON." Ensure the JSON syntax is correct before running the node.
- Authentication Errors: Failure to authenticate with the Wuzapi Admin API (e.g., invalid or missing API token) will cause HTTP request failures. Verify that the API key credential is correctly configured.
- Network Issues: Connectivity problems to the Wuzapi Admin API endpoint will result in request timeouts or errors. Check network settings and endpoint availability.
- API Errors: The node returns error messages from the API in the output JSON. Review these messages to diagnose issues such as invalid parameters or permission problems.
Links and References
- Wuzapi WhatsApp API Documentation (replace with actual URL)
- n8n HTTP Request Node documentation for understanding underlying HTTP calls: https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/