Overview
This node integrates with the Wuzapi WhatsApp API to manage user information and presence status. Specifically, the "Set Presence" operation allows users to set their global WhatsApp presence status as either "Available" (online) or "Unavailable" (offline). This is useful for automating presence updates in workflows, such as signaling availability during business hours or setting offline status after hours.
Practical examples:
- Automatically mark a WhatsApp user as "Available" when a support agent logs into a system.
- Set presence to "Unavailable" outside of working hours to indicate unavailability.
Properties
| Name | Meaning |
|---|---|
| Presence Type | Global presence status to set. Options: - Available: Show as online - Unavailable: Show as offline |
Output
The node outputs JSON data reflecting the response from the Wuzapi API after setting the presence. The structure typically contains confirmation or status details about the presence update.
No binary data output is generated by this operation.
Dependencies
- Requires an API key credential for authenticating with the Wuzapi WhatsApp API.
- The node uses the
/user/presenceendpoint of the Wuzapi API to set presence. - Proper configuration of the API credential within n8n is necessary.
Troubleshooting
Common issues:
- Invalid or missing API credentials will cause authentication failures.
- Network connectivity problems can prevent communication with the Wuzapi API.
- Providing an unsupported presence type value may result in API errors.
Error messages:
- Authentication errors usually indicate invalid or expired API keys; verify and update credentials.
- Validation errors on presence type suggest using one of the allowed options ("available" or "unavailable").
- If the API returns unexpected errors, check the API service status and ensure the request payload matches expected formats.
Links and References
- Wuzapi WhatsApp API Documentation (example link, replace with actual if available)
- n8n documentation on Creating Custom Nodes