WSAPI icon

WSAPI

Interact with WSAPI WhatsApp API

Overview

This node integrates with the WSAPI WhatsApp API, enabling users to interact programmatically with various WhatsApp resources. Specifically, for the Account resource and the Set Status operation, it allows updating the status message that appears on a WhatsApp profile.

Typical use cases include:

  • Automatically updating your WhatsApp business status to reflect current availability or promotions.
  • Setting personalized status messages based on external triggers or workflows.
  • Keeping contacts informed about your current status without manual intervention.

For example, a user might set their status message to "Available for business inquiries" during working hours and change it automatically outside those hours.

Properties

Name Meaning
Status Message The status message text that will appear in your WhatsApp profile. This should be concise and professional. Example: "Available for business inquiries".

Output

The node outputs JSON data representing the result of the status update operation. This typically includes confirmation details such as success status or updated account information. The exact structure depends on the WSAPI response but generally confirms that the status message was set successfully.

No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the WSAPI WhatsApp API.
  • Needs an API authentication token or API key credential configured in n8n to authorize requests.
  • The base URL for the WSAPI must be set in the credentials configuration.

Troubleshooting

  • Common Issues:

    • Invalid or missing API credentials can cause authentication failures.
    • Providing an empty or overly long status message may lead to API errors.
    • Network connectivity issues can prevent communication with the WSAPI endpoint.
  • Error Messages:

    • "The resource "account" is not known!" — indicates an invalid resource selection; ensure "Account" is chosen.
    • "The operation "setStatus" is not implemented yet!" — suggests the operation name is incorrect or unsupported; verify operation spelling.
    • API error responses related to authorization or validation will be passed through; check credentials and input values accordingly.

To resolve these, verify credentials, ensure the status message meets API requirements, and confirm network access.

Links and References

Discussion